Page 1 of 1

Text color in .cpp files not working in Version 5.3.1

Posted: Tue Dec 22, 2009 3:37 am
by helix
I downloaded/ installed v. 5.3.1. Previously I had 4.x and 5.x and could edit various language files with colors, expecially c++. In Configure/Preferences/Document Classes/C/C++, the default colors are properly shown but are just not working on my files. Everything is in black and white. I uninstalled the previous versions of TextPad. How do I get color back into my c++ files?

Posted: Tue Dec 22, 2009 3:52 pm
by Bob Hansen
You need to set the syntax file for that particular Class.

From the Main Menu:
Configure / Preferences / Document Classes/ C/C++ / Syntax.
The default syntax file is cpp.syn. Make sure that the syntax file you enter is in the path defined at Configure/Preferences/Folders/Syntax.

----------------
When making configuration changes I find it best to follow these steps, especially for any changes in Classes:

1. Close all other copies of TextPad.
2. Close all open documents, INCLUDING THE DEFAULT NEW BLANK DOCUMENT.
3. Make the changes you want: Configure/Preferences/......
4. Apply and OK your way out the configurations.
5. Close TextPad.
6. Open TextPad again, and your changes should be good.
-------------

Posted: Tue Dec 22, 2009 4:43 pm
by helix
Thanks Bob,

That was very helpful.
Just for reference and perhaps for others that have the same problem, after I installed 5.3.1 and went to set the syntax under C++/Syntax, the "Syntax_definition file" box was gray and would not let me do anything. One indeed must close all of the other documents for the gray box to turn white and let you see the list of .syn files to set the definitions!