Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDE with syntax highlight support for LESS

Is there any IDE with syntax highlight support for LESS?

like image 892
Diogo Cardoso Avatar asked Apr 29 '11 08:04

Diogo Cardoso


People also ask

What is syntax highlighting in IDE?

Syntax highlighting is a feature of text editors that are used for programming, scripting, or markup languages, such as HTML. The feature displays text, especially source code, in different colours and fonts according to the category of terms.

How do I highlight text in less?

less doesn't support syntax highlighting. vim , like all vi clones has a read-only mode called view which you can use to just view files. it supports all features of vim including syntax highlighting.

What is PrismJS used for?

Syntax Highlighting with PrismJS Prism is a lightweight, extensible syntax highlighter that can be used when working with code blocks in markdown files in blog posts.

How do I enable syntax highlighting in Vim?

After opening login.sh file in vim editor, press ESC key and type ':syntax on' to enable syntax highlighting. The file will look like the following image if syntax highlighting is on. Press ESC key and type, “syntax off” to disable syntax highlighting.


1 Answers

Eclipse does not support .less fully (nested rules, single line comments, etc) but you can at least configure it so that it would open .less files and treat them as .css.

Preferences > General > Content Types: find "CSS" entry and add .less extension.

Then, Preferences > General > Editors > File Assoc: add .less extension and associate with CSS editor.

Better than nothing, especially if you're into Eclipse world ;)

like image 64
bzx Avatar answered Sep 20 '22 15:09

bzx