View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001709 | Composr | core | public | 2014-11-02 21:16 | 2014-11-23 21:11 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Severity | Feature-request | ||||
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Fixed in Version | |||||
Summary | 0001709: 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. | ||||
Time estimation (hours) | 1 | ||||
Sponsorship open | |||||