How to set colour to a text ?

General questions about using TextPad

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

Post Reply
polavan
Posts: 1
Joined: Tue Nov 01, 2011 9:58 am

How to set colour to a text ?

Post by polavan »

Version:5.4.2

In textpad, can i set colour to a string ? For example, for the text below , I need to set the colour for the string "Important" to Red. Is this possible?

Code: Select all

*******Important**********
For externally authenticated users, DO NOT set password. Unix OS user won't be able to login
User avatar
SteveH
Posts: 327
Joined: Thu Apr 03, 2003 11:37 am
Location: Edinburgh, Scotland
Contact:

Post by SteveH »

You need to create a syntax file (*.syn) associated with the file type and then add keywords that you want to be coloured. You may need to create a new document class for the file types.

As an example here's part of a file I created for the ATLAS language:

Code: Select all

[Keywords 4]
REQUIRE,
DECLARE,
DEFINE,
IF,
WHILE,
FOR,
PERFORM,
FINISH,
ELSE
END,
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.
Post Reply