Code highlighting in LESS files

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Code highlighting in LESS files

Postby ttx » Sun Jan 10, 2016 9:55 pm

Hi,

few weeks ago i started using BEM methodology (https://en.bem.info/). Preprocessors like LESS makes this incredibly easy. Code looks like this:

Code: Select all
.tab {
  &-item {
    display: inline-block;
  }

  &-link {
    color: blue;
  }
}

and gets translated to:
Code: Select all
.tab-item {
  display: inline-block;
}

.tab-link {
  color: blue;
}

My issue is that code highlighter in RapidPHP makes every line with "&-" red (as erroneous).

Can you please fix this? Or send me some updated "less highlighter configuration file" as a temporary fix?

Thank you.
ttx
 
Posts: 26
Joined: Wed Jul 28, 2010 10:20 am

Re: Code highlighting in LESS files

Postby Aivars » Tue Jan 12, 2016 11:28 am

This will be fixed in the new major version but here's the syntax file for you.
Attachments
lessparser.zip
(3.8 KiB) Downloaded 116 times
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2374
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Code highlighting in LESS files

Postby ttx » Tue Jan 12, 2016 1:14 pm

Aivars wrote:This will be fixed in the new major version but here's the syntax file for you.

Thank you. It works perfectly. :)
ttx
 
Posts: 26
Joined: Wed Jul 28, 2010 10:20 am


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron