View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1709 | Composr | core | public | 2014-11-02 21:16 | 2014-11-23 21:11 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 1709: Safety for syntax highlighers in JS/CSS re Tempcode | ||||
Description | New syntax for directives, e.g.: /*START,IF,{$IS_MOBILE}*/ /*END,IF*/ (Symbols and language string references should be fine as-is, as those will already be going inside string quotes) Add a little extra code to our Tempcode parser: $code=preg_replace('#\/\*((START|END),.*)\*\/#U','{+$1}',$code); Document the new syntax. Apply to default templates. Test the changes templates parse correctly. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | 1 | ||||
Sponsorship open | |||||