Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ace editor: customizing syntax error gutter

Tags:

ace-editor

Just wondering, if the syntax error gutter can be customized? Also is it possible to highlight texts which has syntax error?

For example below I am trying to check value of myString against string a "chetan" but without quotes. Now this is a syntax error. Currently we display the error in gutter prior to line number. But is it possible to customize the ace editor provide inline highlight and change the color?

if myString==chetan:
  //do something
endif 
like image 454
Chetan Avatar asked Oct 20 '22 16:10

Chetan


1 Answers

You can add underline similar to the way cloud9 and zed do (see https://github.com/zedapp/zed/commit/59ae66c545db2ad92dc5efc1a069edd16960ebdd) or modify highlighter tokens see https://groups.google.com/d/msg/ace-discuss/_PRUJ_HemNo/wvDf9FqwzhMJ

like image 125
a user Avatar answered Oct 24 '22 01:10

a user