Associate syntax highlighting with file extension

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
jasonG
Posts: 2
Joined: Fri Apr 08, 2011 4:22 pm

Associate syntax highlighting with file extension

Post 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?
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post 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.
jasonG
Posts: 2
Joined: Fri Apr 08, 2011 4:22 pm

Post by jasonG »

That did it. Thanks.
Post Reply