Click here to Skip to main content
15,881,803 members
Home / Discussions / C#
   

C#

 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 0:03
sitebuilderLuc Pattyn15-Jul-09 0:03 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 1:24
WebMaster15-Jul-09 1:24 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 1:43
sitebuilderLuc Pattyn15-Jul-09 1:43 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 1:56
WebMaster15-Jul-09 1:56 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 2:03
sitebuilderLuc Pattyn15-Jul-09 2:03 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 2:33
WebMaster15-Jul-09 2:33 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 2:44
sitebuilderLuc Pattyn15-Jul-09 2:44 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 3:23
WebMaster15-Jul-09 3:23 
Hmm, okay I figured it out Smile | :)
I was thinking, since I'm making the Document class..

Wouldn't it be smarter to have a Dictionary<int, string=""> than a List<string>? Since I'm creating a method "UpdateLine" that takes (int lineNum, string newLine)? The reason I'm asking is because I'm not sure if it's the most efficient way.

Really, I now it's kinda disturbing that I ask so much, but I am totally new to making this custom-Caret-Cursor-textpoint-to-pixel-thingy, I know nothing about it. I simply always used the default Windows controls or inheritted them in my own. Please bear with me Smile | :)

The thing about the map column thing... should I simply just, when the Document is updated, add the charWidth to the current caret point (of course substract when the user hit backspace) ? That is what seems most logical to me.
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 3:29
sitebuilderLuc Pattyn15-Jul-09 3:29 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 4:05
WebMaster15-Jul-09 4:05 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 4:20
sitebuilderLuc Pattyn15-Jul-09 4:20 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 4:44
WebMaster15-Jul-09 4:44 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 5:16
sitebuilderLuc Pattyn15-Jul-09 5:16 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 6:11
WebMaster15-Jul-09 6:11 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 6:23
sitebuilderLuc Pattyn15-Jul-09 6:23 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 6:37
WebMaster15-Jul-09 6:37 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 6:43
sitebuilderLuc Pattyn15-Jul-09 6:43 
GeneralRe: Best method for syntax highlighting Pin
WebMaster15-Jul-09 8:34
WebMaster15-Jul-09 8:34 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn15-Jul-09 8:40
sitebuilderLuc Pattyn15-Jul-09 8:40 
GeneralRe: Best method for syntax highlighting Pin
WebMaster16-Jul-09 6:12
WebMaster16-Jul-09 6:12 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn16-Jul-09 6:49
sitebuilderLuc Pattyn16-Jul-09 6:49 
GeneralRe: Best method for syntax highlighting Pin
WebMaster16-Jul-09 21:54
WebMaster16-Jul-09 21:54 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn16-Jul-09 23:01
sitebuilderLuc Pattyn16-Jul-09 23:01 
GeneralRe: Best method for syntax highlighting Pin
WebMaster17-Jul-09 3:14
WebMaster17-Jul-09 3:14 
GeneralRe: Best method for syntax highlighting Pin
Luc Pattyn17-Jul-09 3:26
sitebuilderLuc Pattyn17-Jul-09 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.