View Issue Details

IDProjectCategoryView StatusLast Update
1709Composrcorepublic2014-11-23 21:11
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary1709: Safety for syntax highlighers in JS/CSS re Tempcode
DescriptionNew 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.
TagsNo tags attached.
Attach Tags
Time estimation (hours)1
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change