Closed HenryTheVacuum closed 12 years ago
I don't know much about themes, but Eclipse/Aptana have SASS color syntaxing which can be used for LESS files. Isn't there a way to adapt it for Notepadd++ ? I've heard of themes being ported from one editor to another so...
Actually this already exists. Just install the LESS.js User Defined Language file found on this page: http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Language_Files
I've looked at that and it only provides a global override which makes all of the text black for any language... no special highlighting unfortunately. I'll continue to dig around.
Please never post an answer like that again. It is really frustrating when you: -give someone the right solution to their problem -> -they fail to use your solution -> -they conclude that it must be you who is wrong
Anyway, I do know that the LESS.js User Defined Language file for Notepad++ does work. I have been using it myself for quite some time now. Did you follow the instructions for installing it? I'll add them here just to be sure.
First download the 'LESS.js' language file from the list. Then follow the instructions found below the list:
To add syntax colouring from one of these:
Your Languages menu will show the newly added language at the bottom, next time you launch Notepad++.
Note: if adding the userDefineLang.xml file to the Program Files directory of Notepad++ doesn't work, try adding it '%APPDATA%\Notepad++'.
I now realize you MUST rename the file from userDefineLang_LESS.xml to userDefineLang.xml. The import feature in Notepad++ works once you rename the file.
This little hickup might answer someone else with the same initial problem.
Thanks a bunch.
I used that LESS.js
and added some stuff to it.
It can be found over here https://github.com/azrafe7/LESS-for-Notepad-plusplus if you're interested.
@azrafe7 Thanks, maybe you'd like to add to the wiki here https://github.com/cloudhead/less.js/wiki/Editors-and-Plugins
@lukeapage Sure... done!
Notepad++ is a very popular editor... however there is no style theme to properly highlight syntax because LESS files include both JS and CSS. If you add the .LESS extension to the .CSS style configuration some of the highlighting is proper, however nesting etc. messes it up.
I realize this isn't a priority but you never know if any trolls might have a link to one someone has made.
Thanks.