| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Никита Козин 09.08.2005 13:52 / 09.08.2005 13:53
Добрый день, вы говорили, что пробовали сделать подсветку Парсерного кода в Dreamweaver... :) <scheme name="Parser 3" id="Parser3" doctypes="Parser3,HTML" priority="50">
<ignoreCase>No</ignoreCase>
<ignoreTags>Yes</ignoreTags>
<defaultText name="Default Text" id="CodeColor_Parser3DefaultText" />
<commentStart name="Comment" id="CodeColor_Parser3Comment"><![CDATA[^rem{]]></commentStart>
<commentEnd><![CDATA[}]]></commentEnd>
<endOfLineComment><![CDATA[#]]></endOfLineComment>
<stringStart name="String" id="CodeColor_Parser3String"><![CDATA["]]></stringStart>
<stringEnd><![CDATA["]]></stringEnd>
<stringStart><![CDATA[']]></stringStart>
<stringEnd><![CDATA[']]></stringEnd>
<brackets name="Bracket" id="CodeColor_Parser3Brackets"><![CDATA[{[()]}]]></brackets>
<operators name="Operator" id="CodeColor_Parser3ExpressionOperator"><![CDATA[+-*/%<>!?:=&|^]]></operators>
<numbers name="Number" id="CodeColor_Parser3Numbers" />
<keywords name="Reserved Keywords" id="CodeColor_Parser3Service">
<keyword>if</keyword>
<keyword>switch</keyword>
<keyword>case</keyword>
<keyword>for</keyword>
<keyword>while</keyword>
<keyword>taint</keyword>
<keyword>untaint</keyword>
<keyword>try</keyword>
<keyword>throw</keyword>
<keyword>eval</keyword>
<keyword>process</keyword>
<keyword>cache</keyword>
<keyword>use</keyword>
<keyword>connect</keyword>
</keywords>
<sampleText doctypes="Parser3">
<![CDATA[# $Id: simple.p,v 1.02 2004/04/12 15:21:37 VPoupkine Exp $
@USE
/../classes/power_ops.p
@customMethod[messages;status] comments
^if(def $messages && $status.int(0) != 0){
$result[^xdoc::create{<?xml version="1.0"?>
<document>
^messages.menu{
<message>
<id>^messages.id.format[%02d]</id>
<text>^untaint{$messages.body}</text>
</message>
}
</document>
]
}
]]>
</sampleText>
</scheme>(информацию взял из примера Олега Волчкова: http://www.parser.ru/examples/pcolorer/)<syntaxColor id="CodeColor_Parser3DefaultText" text="#000000" /> <syntaxColor id="CodeColor_Parser3Service" bold="true "text="#AA0000" /> <syntaxColor id="CodeColor_Parser3MethodDefine" bold="true" text="#990000" /> <syntaxColor id="CodeColor_Parser3Comments" text="#888888" /> <syntaxColor id="CodeColor_Parser3ExpressionOperator" text="#000000" /> <syntaxColor id="CodeColor_Parser3MethodCall" text="#AA0000" /> <syntaxColor id="CodeColor_Parser3Variable" text="#CC0000" /> <syntaxColor id="CodeColor_Parser3Result" text="#D27000" /> <syntaxColor id="CodeColor_Parser3HTML" text="#0077DD" /> <syntaxColor id="CodeColor_Parser3String" text="#990000" /> <syntaxColor id="CodeColor_Parser3Brackets" text="#0000AA" /> <syntaxColor id="CodeColor_Parser3Numbers" text="#FF00FF" />Раскраски нет. Даже не правильной. Вообще никакой. Черный текст. Вы на форуме говорили, что у вас она была порой раздражающе неверной, но все же была. Объясните пожалуйста как вам это удалось?... :)