Entry
TSE: Convert:How to convert a TSE syntax highlight TEXT file to a .SYN file? (TSE v2.8, v3.0, v4.x)
Aug 26th, 2005 12:30
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 01 July 2003 - 04:34 pm -----------------------
TSE: Convert:How to convert a TSE syntax highlight TEXT file to a .SYN
file? (TSE v2.8, v3.0, v4.x)
---
Possibly make sure you make a backup of the existing .syn file(s) just
in case of.
---
Method:
Steps: Overview:
1. -Start TSE
2. -Load your <yourfilename>.txt file
e.g.
sas.txt
3. -Run the following macro
syncfg2.mac
4. -This will create an editing buffer called
<your filename>.syn
e.g.
sas.syn
in the proper binary mode and format.
5. -Save this buffer
6. -Do not edit/change this .syn file
(thus any changes take place in the .txt place)
---
---
Method:
Steps: Overview:
1. -Make sure your syntax highlight
text file exists
e.g.
php.txt
e.g.
sas.txt
e.g. created via copy/pasting
an already existing .txt
color file
2. -Start TSE
3. -Run the syntax highlight macro
1. -Select from menu option 'Options'
2. -Select from list 'Full Configuration'
3. -Select from list 'Display / Color options'
4. -Select from list 'Configure SyntaxHilite mapping sets'
-- or --
1. -run the macro '..\mac\syncfg.mac'
1. -Select from menu option 'Macro'
2. -Select from list 'Execute'
3. -Type the macro name
e.g. mac\syncfg.mac
(you might have to adapt the path)
4. -Select from list 'Create New'
5. -Select from list 'Synhi'
6. -Choose the 'New filename' (without path) for your .syn
e.g.
php.syn
e.g.
sas.syn
7. -Select from list 'Overlay Settings from mapping text file',
to load your syntax highligt text file
8. -You will see a warning 'This feature is designed to read
in a text file from disk.'
9. -Select 'Yes'
10. -Fill in the full path to your .txt file
e.g.
c:\wordproc\tse32_v4\synhi\php.txt
e.g.
c:\tse\sas.txt
11. -Possibly accept to associate this file
with your currently loaded file
e.g. if php
(in that case make sure it is a php
file, for example)
thus fill in in the list
php
e.g. if sas
(in that case make sure it is a sas
file, for example)
thus fill in in the list
sas
12. -After this all files with that extension
e.g. .php
e.g. .sas
should show the syntax highlight colors
as you defined in your .txt file.
---
---
Internet: see also:
---
TSE: Color: Syntax highlighting: Link: Overview: Can you give an
overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/37599/fid/929
----------------------------------------------------------------------