3

/usr/share/nano/js.nanorc configuration: syntax highlighting

view full story
linux-howto

https://bbs.archlinux.org – I have a question regarding syntax highlighting with JavaScript using nano. I have tweaked the js.nanorc file to my liking using the colors I prefer: ## New updated taken from [url]http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting[/url] syntax "JavaScript" "\.(js)$" ## Default color brightgreen "^.+$" ## Decimal, cotal and hexadecimal numbers color brightyellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" ## Floating point number with at least one digit before decimal point color brightyellow "\<[-+]?([0 (HowTos)