Is there any way to get correct syntax highlighting of JS?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Is there any way to get correct syntax highlighting of JS?

Post by chrisjj »

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

Code: Select all

function htmlEscape(str) {
    return str
        .replace(/&/g, '&')
        .replace(/"/g, '"')
        .replace(/'/g, ''')
        .replace(/</g, '&lt;')
        .replace(/>/g, '&gt;');
}
correctly highlighted here

Image

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

Image
chrisjj
Posts: 149
Joined: Sat Jan 21, 2006 10:32 pm

Re: Is there any way to get correct syntax highlighting of J

Post by chrisjj »

Please?
Post Reply