Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / syntax highlighter

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 1st Jan 2007 02:40
Highlights and displays a DBA file. Certain keywords aren't being highlighted, such as 'SYNC', and I'm not sure why yet.

For the most part it works, but the parser is terribly inefficient. Not noticable with small files and a small keyword list, but I bet you if you loaded a 2k line source with the full DB keyword list you'd see a difference.

So far, it highlights keywords and 1-liner REM statements.




Vampiric
18
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 2nd Jan 2007 17:45 Edited at: 2nd Jan 2007 17:46
Oh my god this is the best

All bow down to evil
MadrMan
18
Years of Service
User Offline
Joined: 17th Dec 2005
Location: 0x5AB63C
Posted: 7th Jan 2007 15:33
odd.
c = "(" gave me an error until i changed it to c = chr$(40)

good job on the highlighting


Login to post a reply

Server time is: 2024-11-22 23:11:37
Your offset time is: 2024-11-22 23:11:37