|
From: Jeff R. <jef...@ea...> - 2001-03-14 10:22:04
|
Everyone!
A new version of SynEdit, 1.03b, will soon be released. This version
will include many changes discussed on and off the list. It *should*
include
full support for the SampleSource property that was added in 1.03. This
is *your* chance to contribute to SynEdit-- if you know a language that
SynEdit has a highlighter for, please submit a SampleSource. The more
obscure the language the better! XML for example will be:
<?xml version="1.0"?>
<!DOCTYPE root [
]>
<!-- Comment -->
<root version="&test;">
<![CDATA[ **CDATA section** ]]>
<child id="child1">
Some Child Text
</child>
</root>
or
function TSynXMLSyn.GetSampleSource: String;
begin
Result:= '<?xml version="1.0"?>'#13#10+
'<!DOCTYPE root ['#13#10+
' ]>'#13#10+
'<!-- Comment -->'#13#10+
'<root version="&test;">'#13#10+
' <![CDATA[ **CDATA section** ]]>'#13#10+
' <child id="child1">'#13#10+
' Some Child Text'#13#10+
' </child>'#13#10+
'</root>';
end;
The main objective is to give a sample bit of code for each Highlighter
option (not necessarily every part of the language). If you have some
code that you are not sure of-- post it!-- maybe others on the list can
revise and supplement.
-Jeff Rafter
Defined Systems
PS. 10 points to the first person to offer up the Pascal SampleSource!
|