Syntax Highlighting In A VB.NET Application

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts Page 1 of 1
Contributors
User avatar
visualtech
VIP - Donator
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

Alright People,

Many of you are working on some 'Editor' Well, you might know that a good Editor always has 'Syntax Highlighting' meaning that a particular piece of code is highlighted with a custom color.

So, today we will be making one.

For That You Need:
  • The Source Code From The Attachment
  • Microsoft Visual Basic/Studio
Steps:
  • [Step 1] Open Visual Studio/Basic And Create A New Windows Forms Project . Name It To Whatever You Want

    [Step 2] Add Your Necessary Form Components Don't Forget To Add A Richtextbox

    [Step 3] Double Click The Richtextbox

    [Step 4] Download The Source Code And Paste It Within The Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged

    [Step 5] You Are All Set, Now Just Debug The Code

    NOTE: I, Cris, Made It For A MySQL Editor
To Change The Syntaxes; Edit The List Named: "arrKeyWords = New String() {"alias", "and", "begin", "break", "case", "catch", "class", "def", "do", "elsif", "else", "fail", "ensure", "for", "end", "if", "in", "module", "next", "not", "or", "raise", "redo", "rescue", "retry", "return", "then", "throw", "super", "unless", "undef", "until", "when", "while", "yield", "BEGIN", "END", "Defined?", "nil", "self", "True", "False", "__FILE__", "__LINE__"}" With Whatever Syntaxes You Want

Hope This Tutorial Gave You Some Knowledge About Syntax Highlighting In VB.NET


Download The Source Code
Offsite: [/b]

This file is hosted off-site.

Click Here To Verify The File For Any Viruses!

Onsite:
Syntax_Highlighting.zip
Source Code Posted On The Following Sites:
http://www.dreamincode.net/forums/topic ... hlighting/
http://social.msdn.microsoft.com/Forums ... 54c9808828
http://www.dreamincode.net/forums/topic ... ge__st__20
I did not copy them!!!!!! Plus, the source code is actually posted by me
You do not have the required permissions to view the files attached to this post.
Last edited by visualtech on Mon Nov 21, 2011 10:31 am, edited 7 times in total.
Image
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Sorry, but the source code can be found for free on the Internet, and since you did not write it, you cannot technically sell it or charge credits for it.
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

And this isn't tutorial
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

I did not download, but by searching for the arrKeyWords = New String()...
I found quite many links with the exact same list. Weird.
http://www.dreamincode.net/forums/topic ... hlighting/
http://social.msdn.microsoft.com/Forums ... 54c9808828
Last edited by MrAksel on Mon Nov 21, 2011 2:10 pm, edited 1 time in total.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

He's a skid, obviously
http://vagex.com/?ref=25000
User avatar
visualtech
VIP - Donator
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

OK So, Now I Made It Free.
Happy! clapper; clapper;
Image
6 posts Page 1 of 1
Return to “Tutorials”