Cross-compatible syntax highlighting for Less
- Works with Visual Studio Code, Sublime Text, and Textmate 2.
- Aligns with current CSS features without being overbearing or too relaxed
Visual Studio Code
Launch VS Code Quick Open (⌘+P), paste the following command, and press enter.
ext install better-less
Package Control and install
Better Less. Alternatively, you can clone this project and put it in your Sublime Text packages directory.
Clone the repository to the Bundles directory and add the
$ cd ~/Library/Application\ Support/TextMate/Bundles $ git clone email@example.com:radium-v/Better-Less.git Better-Less.tmbundle
Alternatively, you can clone the repository and symlink to it in your Bundles directory:
$ git clone firstname.lastname@example.org:radium-v/Better-Less.git $ ln -s Better-Less/ ~/Library/Application\ Support/Textmate/Bundles/better-less.tmbundle
Recommended Color Schemes
Some themes are more suitable than others for the extended scopes provided by Better Less. Built-in themes tend to reuse the same colors for different scopes. For instance, many color schemes use the same color for variables and selectors, without taking the prefix into account (
@, etc.). This can make it difficult to scan your code for specific tokens.