<table><tr><td style="">nibags edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-gvbozd6xswpnhpn/">(Show Details)</a><br />nibags added reviewers: dhaumann, cullmann, Framework: Syntax Highlighting, Kate.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14270">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">In CoffeeScript, the character ` (grave accent) is used to insert JavaScript code, but in JavaScript that same character is used for templates. The templantes in embedded JavaScript code are done by prefixing backslashes, as mentioned in the CoffeeScript documentation [1].<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Therefore, the syntax highlighting would look like this:<br />
{F6128337}<br />
<br />
</span>To do this I had to overwrite some JavaScript rules, since some contexts of `javascript.xml` contain<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">` </span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> `</span><IncludeRules context="Normal"/><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> `</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">` </span>, where you can also insert templates. <div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14270">https://phabricator.kde.org/D14270</a></div></div><br /><div><strong>To: </strong>nibags, dhaumann, cullmann, Framework: Syntax Highlighting, Kate<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>