« The Gutenberg Bible | Home | Prepare for the upcoming campaign season »
After downloading the MT clip library that Andre Torrez created for TextPad, I decided to make a syntax highlighting file to take full advantage of the new clips. (If you’ve never used a custom syntax highlighting file in TextPad, it gives you the ability to choose which colors are used to display different aspects of various languages.)
I ended up just adding the MT syntax to the existing php4html.syn file that combines PHP4 and HTML because I use all three of those languages in combination on most of the sites that I work on these days.
I made two versions of the syntax file. The one you choose will depend on which language you want the most detail for.
mph222.syn has two groups of keywords for each language:
This gives you more detail in looking at your MT and HTML tags. Attribute values for MT and HTML will be in a third color determined by a built-in TextPad .syn file. If you do most of your work in MT and HTML and only do basic PHP scripting, this might be a good choice for you.
mph114.syn has one group of keywords for MT, one group for HTML, and four groups for PHP:
This gives you less detail in looking at your MT and HTML tags and attributes, although attributes values for MT and HTML will be in a third color determined by a built-in TextPad .syn file. Conversely, you’ll have much more color detail in your PHP code. If you are comfortable with MT and HTML and do a lot of complex PHP scripting this file might be a better choice for you than mph222.syn.
If it sounds good to you, follow these steps.
TextPad/Samples
, and restart TextPad. Once you’ve got the .syn file installed, you can go to Configure:Preferences:Document Classes:MT+PHP+HTML (or whatever you called your class) and play around with the colors.
If you have any corrections, suggestions, or improvements, or if you’re having problems with the file, please let me know. (Comments on this page are automatically emailed to me.)
I assume this has to do with more advanced programming than I am able to do. Dad
hello !
In query how to highling the key words in richtext box can it be the colletion of key words and rotating from the file with a loop ??
It works very well. Thanks.
Thanks for the useful info concerning TextPad syntax highlighting.
I was very moved by your tribute to your departed companion, Auggie Doggie. We recently had to say goodbye to our oldest canine friend, Mikey, and I would have liked to haved written a memorial such as yours.
Best wishes,
Ingo.
This discussion has been closed. Thanks to all who participated.