Page 1 of 1

How to set colour to a text ?

Posted: Tue Nov 01, 2011 10:04 am
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

Posted: Tue Nov 01, 2011 12:29 pm
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,