MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / PrintScriptingIndicatorOffset

Function PrintScriptingIndicatorOffset

scintilla/lexers/LexHTML.cxx:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112static int PrintScriptingIndicatorOffset(Accessor &styler, unsigned int start, unsigned int end) {
113 int iResult = 0;
114 char s[100];
115 GetTextSegment(styler, start, end, s, sizeof(s));
116 if (0 == strncmp(s, "php", 3)) {
117 iResult = 3;
118 }
119
120 return iResult;
121}
122
123static script_type ScriptOfState(int state) {
124 if ((state >= SCE_HP_START) && (state <= SCE_HP_IDENTIFIER)) {

Callers 1

ColouriseHyperTextDocFunction · 0.85

Calls 1

GetTextSegmentFunction · 0.85

Tested by

no test coverage detected