TextPad Search  |  Contacts  |  Home   
Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to enable syntax highlighting

 
Post new topic   Reply to topic    Community Forum Index -> HOW-TOs
View previous topic :: View next topic  
Author Message
helios



Joined: 02 Mar 2003
Posts: 644
Location: Helios Software Solutions

PostPosted: Wed Mar 12, 2003 6:27 pm    Post subject: How to enable syntax highlighting Reply with quote

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
View user's profile Send private message Visit poster's website
junding



Joined: 19 Mar 2003
Posts: 1

PostPosted: Wed Mar 19, 2003 8:02 pm    Post subject: can't find Python22_1.syn from the list Reply with quote

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
View user's profile Send private message
MudGuard



Joined: 02 Mar 2003
Posts: 994
Location: Munich, Germany

PostPosted: Wed Mar 19, 2003 8:15 pm    Post subject: Reply with quote

Check under Configure/Preferences/Folders which folder is set for syntax and place your file there...
_________________
MudGuard? | Andreas-Waechter.de | netz-treff.de - webmenschen helfen
Back to top
View user's profile Send private message Visit poster's website
Dag



Joined: 30 Mar 2003
Posts: 2
Location: RUS

PostPosted: Fri Jul 04, 2003 5:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
nicomen



Joined: 16 Jun 2004
Posts: 8
Location: California

PostPosted: Fri Jul 02, 2004 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Bob Hansen



Joined: 02 Mar 2003
Posts: 1478
Location: Salem, NH

PostPosted: Fri Jul 02, 2004 12:18 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fmortara



Joined: 28 Aug 2004
Posts: 1

PostPosted: Sat Aug 28, 2004 4:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bob Hansen



Joined: 02 Mar 2003
Posts: 1478
Location: Salem, NH

PostPosted: Sat Aug 28, 2004 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> HOW-TOs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group