News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Syntax highlighting for js files

Started by cichmen, June 18, 2009, 09:04:03 AM

Previous topic - Next topic

cichmen

Hi,

I would like to ask, if there is some other way how to configure CB to syntax highlight javascript files (.js)?

I added *.js to HTML/PHP/ASP/JS lexer filemasks, but no success.

I figured out, that it is possible to workaround it by adding "//<script>" at the begin of the file and "//</script>" at the and of the file. But I don't like it much.

C.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

I use C::B for web-development and have added *.js to C/C++-lexer. That works good enough for me.

cichmen

Thanks for the advice, I added *.js into c/c++ lexer filemasks and "function" into keywords and it works prefectly.