Bug in BatchFile.xml lexer file?

SyntaxEditor for Windows Forms Forum

Posted 12 years ago by Grant Drake - Director, Kiwi Development Ltd
Version: 4.0.0246
Avatar
There seems to be a missing style attribute on this line in the files supplied in the trial download I pulled down today:


<RegexPatternGroup TokenKey="IdentifierToken" PatternValue="(_ | {AlphaMacro})({WordMacro})*" />

If you set your background color of the window to black, and pump out some text with some simulated parameters like "//ea", then the "ea" part is not visible.

I added a style attribute and all was good with the world.

Comments (3)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Grant,

It should be using DefaultStyle if you don't specify one. So you could just change DefaultStyle's foreground color to white.


Actipro Software Support

Posted 12 years ago by Grant Drake - Director, Kiwi Development Ltd
Avatar
Ermm, sorry for sounding thick here but new to your API. How do I do that? I assumed there was something like that but couldnt find anything in the help file. I looked at the renderer methods, SyntaxEditor, Document, Selection...

I know its going to jump up and bit me when you tell me... ;-)
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
No problem. Each SyntaxLanguage has a HighlightingStyles collection. There always is a DefaultStyle in it.

So something like this:
language.HighlightingStyles["DefaultStyle"].ForeColor = Color.White;
[Modified at 04/07/2007 07:39 AM]


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.