HTML Syntax Problem

General questions about using TextPad

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

Post Reply
BygByte
Posts: 2
Joined: Mon Jul 21, 2003 6:12 am
Location: USA
Contact:

HTML Syntax Problem

Post by BygByte »

I'm unable to highlight "{()}" and the full colon ":" using the following:

HTML=1

[Syntax]
Namespace1 = 2
IgnoreCase = yes
BracketChars = {()}
OperatorChars = /=:
SyntaxStart = <
SyntaxEnd = >
CommentStart = !--
CommentEnd = -->
CommentStartAlt = /*
CommentEndAlt = */
StringsSpanLines = Yes
StringStart = "
StringEnd = "
StringAlt = '
CharStart = &
CharEnd = ;

Code example:

<link rel="stylesheet" href="/style_####.css" />
<style type="text/css">
/* 091226 */
#body {
background:url('/images/');
font-family:;
letter-spacing:1.5px;
}
#page { /* 975x760 */

The "/" and "=" work as OperatorChars, but not the ":". In my css.syn, brackets work but no operators. My suspicion is that the underlying code driving the .syn files is limited.

Note: I've never gotten "href" and its ilk to behave, but I'm not concerned about that here.

Pre-appreciation for any help you may offer.
Phil Reynolds - Consultant
bygbyte@gmail.com
Post Reply