Forum Discussion

Andy_Herrman_22's avatar
Andy_Herrman_22
Icon for Nimbostratus rankNimbostratus
Jun 04, 2007

Custom Syntax Coloring

I'm one of those weird people who likes to have a black background in my editors. I've figured out how to change most of the syntax coloring, but there's one part that's bugging me. I can't seem to change the color of the caret. It looks like the 2 colors the caret uses is black and whatever the background color is. Unfortunately, since my background color is black the caret never appears, which makes editing a bit difficult.

It looks like the editor is based off of scintilla and the other applications I have based on that allow the caret color to be modified using something like the following:

selection-fore="default-selection-fore" selection-back="default-selection-back" />

I tried using something like that in the XML config for the iRule editor but it didn't work.

Is there any way to change the caret coloring, or am I stuck making my background white?
  • The editor uses Scintilla.NET which is a .NET wrapper for the Scintilla COM control. So, unfortunately, anything in the configuration has to be handled by the application (in this case the Editor) and the appropriate call has to be made (in this case m_textEditor.SetCaretFore(xxx)). That code is not currently in the Editor, but I'll add it to my list of enhancements that I'm working on and get it in as soon as possible.

     

     

    -Joe