18 #include "QsciLexerNCL.h"
28 : QsciLexerHTML(parent),
60 return QColor(0x00, 0x00, 0x00);
67 return QColor(0x00, 0x00, 0x80);
70 case UnknownAttribute:
71 return QColor(0x00, 0x00, 0x80);
74 return QColor(0x00, 0x7f, 0x7f);
76 case HTMLDoubleQuotedString:
77 case HTMLSingleQuotedString:
78 return QColor(0x99, 0x33, 0x00);
84 return QColor(0x80, 0x00, 0x80);
88 return QColor(0x00, 0x7f, 0x7f);
92 case SGMLDoubleQuotedString:
94 return QColor(0x80,0x00,0x00);
97 return QColor(0x00,0xFF,0x00);
100 return QColor(0x00,0x66,0x00);
102 case SGMLSingleQuotedString:
103 return QColor(0x99,0x33,0x00);
106 return QColor(0x33,0x66,0xff);
109 return QColor(0x00,0x00,0x33);
111 case SGMLBlockDefault:
112 return QColor(0x00,0x00,0x66);
115 return QsciLexerHTML::defaultColor(style);
125 return QsciLexerHTML::defaultEolFill(style);
139 #if defined(Q_OS_WIN)
140 f = QFont(
"Times New Roman", 10);
142 f = QFont(
"Bitstream Charter", 9);
149 f = QsciLexerHTML::defaultFont(style);
154 f = QsciLexerHTML::defaultFont(style);
167 return QsciLexerHTML::keywords(set);
181 return QColor(0xff,0xff,0xff);
186 case SGMLDoubleQuotedString:
187 case SGMLSingleQuotedString:
191 return QColor(0xef,0xef,0xff);
194 return QColor(0xff,0x66,0x66);
196 case SGMLBlockDefault:
197 return QColor(0xcc,0xcc,0xe0);
200 return QsciLexerHTML::defaultPaper(style);
208 emit propertyChanged(
"fold.html",
"1");
215 int rc = QsciLexerHTML::readProperties(qs, prefix);
217 scripts = qs.value(prefix +
"scriptsstyled",
true).toBool();
226 int rc = QsciLexerHTML::writeProperties(qs, prefix);
228 qs.setValue(prefix +
"scriptsstyled", scripts);
251 void QsciLexerNCL::setScriptsProp()
253 emit propertyChanged(
"lexer.xml.allow.scripts",(scripts ?
"1" :
"0"));