Click here to Skip to main content
15,913,722 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: windows speed check Pin
Guffa11-Aug-07 17:30
Guffa11-Aug-07 17:30 
AnswerRe: windows speed check Pin
Luc Pattyn12-Aug-07 2:32
sitebuilderLuc Pattyn12-Aug-07 2:32 
GeneralRe: windows speed check Pin
nedracix12-Aug-07 3:48
nedracix12-Aug-07 3:48 
GeneralRe: windows speed check Pin
Luc Pattyn12-Aug-07 4:11
sitebuilderLuc Pattyn12-Aug-07 4:11 
GeneralRe: windows speed check Pin
nedracix12-Aug-07 4:31
nedracix12-Aug-07 4:31 
GeneralRe: windows speed check Pin
Dave Kreskowiak12-Aug-07 7:47
mveDave Kreskowiak12-Aug-07 7:47 
QuestionSyntax Highlighting Pin
Dave@VB11-Aug-07 7:08
Dave@VB11-Aug-07 7:08 
AnswerRe: Syntax Highlighting Pin
Colin Angus Mackay11-Aug-07 8:11
Colin Angus Mackay11-Aug-07 8:11 
The subject of source code parsing is quite a detailed one. It can, depending on the university, take a number of semesters to teach. Most Computer Science degree courses will give you a broad overview in one semester.

You have a number of issues with your code. A Syntax Highlighter is essentially a code interpreter of sorts. That means it has to understand what the code does.

For example, blindly highlighting the word "As" may produce incorrect results as the following code shows:
Dim mySentence As String = "As you know a good parser can interpret the string correctly"



Dave@VB wrote:
It only colors the first word though. Do I need a while loop or something?


I hope you can see that you require a bit more than a while loop. You appear to have taken on a project beyond your current understanding and I would strongly suggest that you learn more before attempting to solve this problem.


Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...

"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."


My website

GeneralRe: Syntax Highlighting Pin
Csharp™11-Aug-07 23:12
Csharp™11-Aug-07 23:12 
QuestionListview Pin
ejaz_pk11-Aug-07 4:58
ejaz_pk11-Aug-07 4:58 
AnswerRe: Listview Pin
Johan Hakkesteegt13-Aug-07 21:39
Johan Hakkesteegt13-Aug-07 21:39 
QuestionProblems with update method Pin
dcode2511-Aug-07 4:47
dcode2511-Aug-07 4:47 
QuestionPrinting Problem in VB6 Pin
yogesh_kumar_agarwal11-Aug-07 1:02
yogesh_kumar_agarwal11-Aug-07 1:02 
AnswerRe: Printing Problem in VB6 Pin
Dave Kreskowiak11-Aug-07 6:55
mveDave Kreskowiak11-Aug-07 6:55 
QuestionDataview Pin
SamRST11-Aug-07 0:50
SamRST11-Aug-07 0:50 
AnswerRe: Dataview Pin
Dave Kreskowiak13-Aug-07 4:01
mveDave Kreskowiak13-Aug-07 4:01 
QuestionChec whether an input is invalid Pin
x-Taka-x11-Aug-07 0:42
x-Taka-x11-Aug-07 0:42 
AnswerRe: Chec whether an input is invalid Pin
Mudsoad11-Aug-07 3:40
Mudsoad11-Aug-07 3:40 
GeneralRe: Chec whether an input is invalid Pin
x-Taka-x11-Aug-07 8:02
x-Taka-x11-Aug-07 8:02 
GeneralRe: Chec whether an input is invalid Pin
Colin Angus Mackay11-Aug-07 8:12
Colin Angus Mackay11-Aug-07 8:12 
Questionmerge string on image Pin
eyes200710-Aug-07 22:38
eyes200710-Aug-07 22:38 
AnswerRe: merge string on image Pin
Guffa11-Aug-07 2:42
Guffa11-Aug-07 2:42 
GeneralRe: merge string on image Pin
eyes200711-Aug-07 3:26
eyes200711-Aug-07 3:26 
GeneralRe: merge string on image Pin
Dave Kreskowiak11-Aug-07 6:50
mveDave Kreskowiak11-Aug-07 6:50 
GeneralRe: merge string on image Pin
Csharp™11-Aug-07 23:00
Csharp™11-Aug-07 23:00 

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.