Entry
TSE: Syntax: Highlight: What is a possible .syn file for an XML file? (TSE v2.8, v3.0, v4.0)
Sep 16th, 2003 08:52
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 01 July 2003 - 10:23 pm -----------------------
TSE: Syntax: Highlight: What is a possible .syn file for XML files?
(TSE v2.8, v3.0, v4.0)
// copyright http://www.semware.com
// convert this text to e.g. 'xml.syn'
// (but if you should not change anything in the text below,
// that file is already present by default, so you do not have
// to save it if not necessary)
// see http://www.faqts.com/knowledge_base/view.phtml/aid/22932/fid/929
// and save it in your
// TSE .syn file directory '..\synhi\'
--- cut here ----------------------------------------------------------
wordset=-0-9A-Z_a-z
HiliteIncompleteQuotes=TRUE
IgnoreCaseOfKeyWords=FALSE
HiliteIf0StyleComments=FALSE
Transparent=TRUE
CursorLineFlag=CursorLineOverrides
NumberFlag=integer
MultiLineDelimited1=<!-- -->
Quote1="
Quote2='
[KeyWords1]
!
!ATTLIST
!DOCTYPE
!ELEMENT
!ENTITY
!NOTATION
$
<
>
?
xml
xml-stylesheet
@
[KeyWords2]
=
CDATA
ENTITIES
ENTITY
ID
IDREF
IDREFS
NMTOKEN
NMTOKENS
[KeyWords3]
/
alternate
charset
default
encoding
href
media
preserve
standalone
title
type
version
xml:lang
xml:space
[KeyWords4]
#FIXED
#IMPLIED
#REQUIRED
&
'
>
<
"
[KeyWords5]
#PCDATA
ANY
EMPTY
EUC-JP
EUC-KR
IGNORE
INCLUDE
ISO-10646-UCS-2
ISO-10646-UCS-4
ISO-2022-JP
ISO-8859-1
ISO-8859-2
NDATA
PUBLIC
SYSTEM
Shift_JIS
UTF-16
UTF-8
euc-kr
utf-16
utf-8
--- cut here ----------------------------------------------------------
---
An idea is possibly to put your own spefic tags also in the .syn file,
so that get clearly highlighted in your XML text files:
[KeyWords6]
TSE
editor
Semware
[KeyWords7]
compiler
interpreter
[KeyWords8]
[KeyWords9]
----------------------------------------------------------------------