Is there any way to get correct syntax highlighting of JS?
Posted: Wed Oct 05, 2016 11:58 am
Is there any way to get correct syntax highlighting of JavaScript?
All the .syn files I have tried give errors.
E.g. on this code
correctly highlighted here

the most recent Javascript .syn https://archive.is/8T8Rz#selection-2241.1-2251.44 fails thus:

All the .syn files I have tried give errors.
E.g. on this code
Code: Select all
function htmlEscape(str) {
return str
.replace(/&/g, '&')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '<')
.replace(/>/g, '>');
}
the most recent Javascript .syn https://archive.is/8T8Rz#selection-2241.1-2251.44 fails thus:
