I've installed TextPad on 2 different computers yesterday & today.
Both installs were TextPad ver. 5.3.1, both cmptrs Win XP.
1st install Color AutoFormatting worked on all of my AutoHotkey files.
2nd install no Color AutoFormatting .. ??? .. just highlights the cursor line .. all other text is black.
1st cmptr popped up a box re ~ 'Default Editor for AutoHotkey' and Ctrl-1,2,3 defaults keys .. 2nd install never saw that box.
I've checked all Config / View / Edit menus & can't find anything.
Also nothing on Google re 'TextPad No Color AutoFormatting'.
Rebooted 2nd cmptr .. still no color.
Thx for any help!
Klbatbcl
TextPad Installed - No Color AutoFormatting
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
In order to enable the syntax highlighting, you will need to implement the following procedure for each Document Class, as in the example below:
Click on:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. Plus sign next to "HTML"
5. Syntax
6. Check the "Enable syntax highlighting" box.
7. Under the heading "Syntax definition file" Select
"html.syn".
8. Click Apply / OK
Please ensure that *.html is a member of the Files in class as follows:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. HTML
5. Under the heading "Files in class", make sure that *.html is in the list. If it is not there, then you will need to add it to the list, along with any other file extensions that you are using for HTML files.
6.Click Apply / OK
I hope this helps.
Click on:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. Plus sign next to "HTML"
5. Syntax
6. Check the "Enable syntax highlighting" box.
7. Under the heading "Syntax definition file" Select
"html.syn".
8. Click Apply / OK
Please ensure that *.html is a member of the Files in class as follows:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. HTML
5. Under the heading "Files in class", make sure that *.html is in the list. If it is not there, then you will need to add it to the list, along with any other file extensions that you are using for HTML files.
6.Click Apply / OK
I hope this helps.
Helios Software Solutions
Did everything on the list .. HTML 'Enable Syntax' was already checked. I also looked at Text files, made sure 'Enable Syntax' was checked there, and added '*.AHK' to the list of Text 'Files in class'.
Still no color syntax on my AHK script files on this cmptr. Same files, same version TextPad on my other cmptr work fine .. color syntax all over the place.
Thx again for any help.
Klbatbcl
Still no color syntax on my AHK script files on this cmptr. Same files, same version TextPad on my other cmptr work fine .. color syntax all over the place.
Thx again for any help.
Klbatbcl
Problem solved.
I checked the cmptr that was running OK and it had 'AutoHotkey' listed as a Document Class where the one that had no color did not.
I used the 'New Document Class' Wizard, downloading 'AutoHotkey.syn' from TextPad's website as instructed, installed it with 'Enable Syntax Highlighting' checked and we're AOK .. AHK files are in color.
Thank you,
Klbatbcl
I checked the cmptr that was running OK and it had 'AutoHotkey' listed as a Document Class where the one that had no color did not.
I used the 'New Document Class' Wizard, downloading 'AutoHotkey.syn' from TextPad's website as instructed, installed it with 'Enable Syntax Highlighting' checked and we're AOK .. AHK files are in color.
Thank you,
Klbatbcl
Fixing syntax highlighting
Thank you, thank you, thank you!!!!! I couldn't figure out why this feature went away, and more importantly I couldn't figure out how to fix it. Thanks for showing me how.helios wrote:In order to enable the syntax highlighting, you will need to implement the following procedure for each Document Class, as in the example below:
Click on:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. Plus sign next to "HTML"
5. Syntax
6. Check the "Enable syntax highlighting" box.
7. Under the heading "Syntax definition file" Select
"html.syn".
8. Click Apply / OK
Please ensure that *.html is a member of the Files in class as follows:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. HTML
5. Under the heading "Files in class", make sure that *.html is in the list. If it is not there, then you will need to add it to the list, along with any other file extensions that you are using for HTML files.
6.Click Apply / OK
I hope this helps.
Textpad, why did you change this setup? This was a big pain in the butt.