Posted 20 years ago
by MagnumOpus
- Birmingham, AL
I am attempting to implement the SyntaxEditor in an application that displays pre-formatted files. These files begin with a formfeed character(0x0C) at position 0 and at regular intervals throughout the file. The formfeed characters will always appear after a newline character and will be followed by some header information terminated with another newline character.
I created my own language definition file in which I defined a RegexPatternGroup named "FormFeedContentDivider" with a PatternValue of "\f" and the "IsContentDivider" flag set to "true". I loaded the language definition using LoadLanguageFromXML and then set the "ContentDividersVisible" property to true and opened the file.
The ContentDivider is visible, but it appears below the header information and the position of the formfeed character is a whitespace. I need the content divider line to appear at the spot of the form feed character and to replace it so that the first character of the header is in column 1 of the document.
Is this possible with the current control?
Thanks,
Mark Calvert
I created my own language definition file in which I defined a RegexPatternGroup named "FormFeedContentDivider" with a PatternValue of "\f" and the "IsContentDivider" flag set to "true". I loaded the language definition using LoadLanguageFromXML and then set the "ContentDividersVisible" property to true and opened the file.
The ContentDivider is visible, but it appears below the header information and the position of the formfeed character is a whitespace. I need the content divider line to appear at the spot of the form feed character and to replace it so that the first character of the header is in column 1 of the document.
Is this possible with the current control?
Thanks,
Mark Calvert