Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Meaning of C, HTML, LaTeX & TEXT in Syntax Files

 
Post new topic   Reply to topic    Community Forum Index -> Tips
View previous topic :: View next topic  
Author Message
bbadmin
Site Admin


Joined: 17 Feb 2003
Posts: 583

PostPosted: Thu Apr 24, 2003 2:41 pm    Post subject: Meaning of C, HTML, LaTeX & TEXT in Syntax Files Reply with quote

Syntax definition files must start with TEXT=1, C=1, HTML=1, LaTeX=1. This tip explains what effect each of those has.

TEXT=1 means that only URLs will be highlighted. All sections of the syntax definition file are ignored, so do not use this type.

C=1 means that full syntax highlighting is available for languages which broadly conform to C syntax. All keywords are in a single namespace, so duplicates are not allowed.

HTML=1 means that full syntax highlighting is available for languages which broadly conform to HTML syntax. Keywords are in two namespaces, with tags in one and their attributes in the other. The Namespace1 parameter controls how many of the six [Keyword] sections are in the first namespace. Having two namespaces allows keywords such as TITLE, which can be both a tag and an attribute, to be colored according to context.

LaTeX=1 is a variant of C=1, to take account of some peculiarities of LaTeX syntax.

Keith MacDonald
Helios Software Solutions
Back to top
View user's profile Send private message Visit poster's website
mattmc3



Joined: 13 Dec 2005
Posts: 3

PostPosted: Wed Feb 15, 2006 8:16 pm    Post subject: PERL=1 Reply with quote

You've left out PERL=1. This may be too old a tip to have accounted for it. What specifically does PERL=1 take into account?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Tips All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB