Page 1 of 1

Associate syntax highlighting with file extension

Posted: Fri Apr 08, 2011 4:34 pm
by jasonG
I downloaded the vbdotnet.syn for VB document class and placed it in the Application Data\TextPad folder. It works if I manually go to View/Document Properties and apply it to a loaded file. I also associated .vb files in Preferences to open with TextPad. However, the syntax highlighting does not automatically come on when I open .vb files. Is there a way to automatically associate this?

Posted: Sat Apr 09, 2011 10:04 am
by ak47wong
You need to create a document class in TextPad for VB files and associate the syntax file with the new document class. Look in the help under How To... > Use Document Classes > Creating a New Document Class.

Posted: Mon Apr 11, 2011 12:52 pm
by jasonG
That did it. Thanks.