Quantcast
Channel: ScintillaNET Forum Rss Feed
Viewing all articles
Browse latest Browse all 296

New Post: Limit Editor Width

$
0
0
Hi guys,

Been working with this for a couple weeks now, have a nice editor with keyword highlighting and calltips working. I was looking to move into syntax error catching now. So I am trying a brute force method of looking at the entire text every time a CharAdded event happens. I separate the text by lines and check the syntax of each line.

This all ties into my discussion topic. I want to limit the column width in the editor to 72 chars. There is a continuation character in my language that allows for a line to spill over multiple lines. But as it stands now I merely have char wrap on, and a fixed scintilla width to simulate a new line every 72 characters. Is there a way that I can make Scintilla's text field have a fixed character width without wrapping?

I was thinking counting characters then when 71 gets hit slapping down a continuation character and a newline. Is there a better solution you can think of?

Thanks

Viewing all articles
Browse latest Browse all 296

Trending Articles