| View previous topic :: View next topic |
| Author |
Message |
helios
Joined: 02 Mar 2003 Posts: 644 Location: Helios Software Solutions
|
Posted: Wed Mar 12, 2003 6:27 pm Post subject: How to enable syntax highlighting |
|
|
In order to enable syntax highlighting in TextPad, you will need to implement the following procedure for each document class, as in the example for Java below:
Click on:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. Plus sign next to "Java"
5. Syntax
6. Check the "Enable syntax highlighting" box.
7. Under the heading "Syntax definition file" Select
"java.syn".
8. Click Apply / OK
Please ensure that *.java is a member of the Files in class as follows:
1. Configure
2. Preferences
3. Plus sign next to Document Classes
4. Java
5. Under the heading "Files in class", make sure that *.java 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 Java files.
6.Click Apply / OK
New documents must be saved with the relevant extension, in order for the syntax highlighting to be activated.
http://www.textpad.com _________________ Helios Software Solutions
Last edited by helios on Mon Jul 03, 2006 9:08 am; edited 5 times in total |
|
| Back to top |
|
 |
junding
Joined: 19 Mar 2003 Posts: 1
|
Posted: Wed Mar 19, 2003 8:02 pm Post subject: can't find Python22_1.syn from the list |
|
|
| I try to create a syntax highlight for Python, download Python22_1.syn and copied it into both \system and \Samples subfolder. But when in your step 7, I can't find Python22_1.syn from "Syntax definition file" list. What should I do? Thanks. |
|
| Back to top |
|
 |
MudGuard

Joined: 02 Mar 2003 Posts: 994 Location: Munich, Germany
|
|
| Back to top |
|
 |
Dag

Joined: 30 Mar 2003 Posts: 2 Location: RUS
|
Posted: Fri Jul 04, 2003 5:31 am Post subject: |
|
|
My combo-box is empty; syntax highlight works with html (and only). how I can highlight xml? How to add Syntax definition file?
Willyou:
a) add tidy in new versions;
b) make unicode support.
Tnx, Dag |
|
| Back to top |
|
 |
nicomen
Joined: 16 Jun 2004 Posts: 8 Location: California
|
Posted: Fri Jul 02, 2004 12:01 am Post subject: |
|
|
That's the same posting that I used.....I didn't work. I went through it again replacing "java" with "html"....to a T, I followed the instructions. Shut TP down and restarted it....still the same. I never had this problem with 4.7.1...only started when I upgraded.
Thanks anyway!
nicomen |
|
| Back to top |
|
 |
Bob Hansen

Joined: 02 Mar 2003 Posts: 1478 Location: Salem, NH
|
Posted: Fri Jul 02, 2004 12:18 am Post subject: |
|
|
I have it found it best to make sure ALL Textpad documents are closed before setting Configuration Preferences.
1. Open TextPad
2. Close All Documents
3. Configure
4. Preferences
5. Make changes as necessary
6. Apply
7. OK
8. Close TextPad
9. ReOpen TextPad.......preferences have been saved. _________________ Hope this was helpful.............good luck,
Bob |
|
| Back to top |
|
 |
fmortara
Joined: 28 Aug 2004 Posts: 1
|
Posted: Sat Aug 28, 2004 4:45 pm Post subject: |
|
|
hi!
i have activated highlight for *.php...
but in the .php file, the text are only in black...
whi?
hot to for highligth text??
thaks... _________________ Sorry for my english...
hi!
Francesco |
|
| Back to top |
|
 |
Bob Hansen

Joined: 02 Mar 2003 Posts: 1478 Location: Salem, NH
|
Posted: Sat Aug 28, 2004 5:14 pm Post subject: |
|
|
Hello Francesco....
Excerpt from http://www.textpad.com/forum/viewtopic.php?t=3755
Please do not post questions here. Use either the General or Java forum
This forum is for you to post helpful instructions on how you have done things with TextPad. _________________ Hope this was helpful.............good luck,
Bob |
|
| Back to top |
|
 |
|