Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
Ace Editor comment start character at beginning of line (before tabs)

Ace Editor's toggleCommentLines function inserts the lineCommentStart character (for me, an asterisk) at the beginning of the line after any tab characters. I need the comment character to go before the lines. (This is for a Pick / BASIC custom syntax highlighter.)

* Valid comment
*    Valid comment
*      Valid comment 
  * Not valid comment
    * Not valid comment

Could someone please help me out?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The implementation of toggleCommentLines method does not have a way to account for such a syntax. See https://github.com/ajaxorg/ace/blob/c2c749b5e0d5f82c8f8c66ae85b3460d6217cbc6/lib/ace/mode/text.js#L165.

You'll need to either make a pull request adding another property to account for such cases (if there are other languages similar to this), or modify the function to call custom implementation of toggleCommentLines from the mode, if such an implementation is available, and implement the correct behavior in your mode instead.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!