User forums > Help
Syntax highlighting for js files
(1/1)
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 this wiki can help you
http://wiki.codeblocks.org/index.php?title=Creating_a_custom_lexer_for_Code::Blocks_editor
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.
Navigation
[0] Message Index
Go to full version