Logo Search packages:      
Sourcecode: wxwindows2.4 version File versions  Download package

LexHTML.cxx File Reference


Detailed Description

Lexer for HTML.

Definition in file LexHTML.cxx.

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <stdarg.h>
#include "Platform.h"
#include "PropSet.h"
#include "Accessor.h"
#include "StyleContext.h"
#include "KeyWords.h"
#include "Scintilla.h"
#include "SciLexer.h"

Go to the source code of this file.

Defines

#define SCE_HA_JS   (SCE_HJA_START - SCE_HJ_START)
#define SCE_HA_PYTHON   (SCE_HPA_START - SCE_HP_START)
#define SCE_HA_VBS   (SCE_HBA_START - SCE_HB_START)

Enumerations

enum  script_mode { eHtml = 0, eNonHtmlScript, eNonHtmlPreProc, eNonHtmlScriptPreProc }
enum  script_type {
  eScriptNone = 0, eScriptJS, eScriptVBS, eScriptPython,
  eScriptPHP, eScriptXML, eScriptSGML, eScriptSGMLblock
}

Functions

static void classifyAttribHTML (unsigned int start, unsigned int end, WordList &keywords, Accessor &styler)
static int classifyTagHTML (unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, bool &tagDontFold, bool caseSensitive)
static void classifyWordHTJS (unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, script_mode inScriptType)
static void classifyWordHTPHP (unsigned int start, unsigned int end, WordList &keywords, Accessor &styler)
static void classifyWordHTPy (unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, char *prevWord, script_mode inScriptType)
static int classifyWordHTVB (unsigned int start, unsigned int end, WordList &keywords, Accessor &styler, script_mode inScriptType)
static void ColouriseASPDoc (unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler)
static void ColouriseASPPiece (StyleContext &sc, WordList *keywordlists[])
static void ColouriseHBAPiece (StyleContext &sc, WordList *keywordlists[])
static void ColouriseHTMLPiece (StyleContext &sc, WordList *keywordlists[])
static void ColouriseHyperTextDoc (unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler)
static void ColourisePHPDoc (unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler)
static void ColourisePHPPiece (StyleContext &sc, WordList *keywordlists[])
static bool InTagState (int state)
static bool isASPScript (int state)
static bool IsAWordChar (const int ch)
static bool IsAWordStart (const int ch)
static bool isCommentASPState (int state)
static bool IsCommentState (const int state)
static bool ishtmlwordchar (char ch)
static bool isLineEnd (char ch)
static bool IsNumber (unsigned int start, Accessor &styler)
static bool isOKBeforeRE (char ch)
static bool isPHPStringState (int state)
static bool IsPhpWordChar (char ch)
static bool IsPhpWordStart (const unsigned char ch)
static bool issgmlwordchar (char ch)
static bool isStringState (int state)
static bool isWordCdata (unsigned int start, unsigned int end, Accessor &styler)
static bool isWordHSGML (unsigned int start, unsigned int end, WordList &keywords, Accessor &styler)
static int PrintScriptingIndicatorOffset (Accessor &styler, unsigned int start, unsigned int end)
static script_type ScriptOfState (int state)
static script_type segIsScriptingIndicator (Accessor &styler, unsigned int start, unsigned int end, script_type prevValue)
static int stateForPrintState (int StateToPrint)
static int StateForScript (script_type scriptLanguage)
static int statePrintForState (int state, script_mode inScriptType)

Variables

static const char *const htmlWordListDesc []
LexerModule lmASP (SCLEX_ASP, ColouriseASPDoc,"asp", 0, htmlWordListDesc)
LexerModule lmHTML (SCLEX_HTML, ColouriseHyperTextDoc,"hypertext", 0, htmlWordListDesc)
LexerModule lmPHP (SCLEX_PHP, ColourisePHPDoc,"php", 0, htmlWordListDesc)
LexerModule lmXML (SCLEX_XML, ColouriseHyperTextDoc,"xml", 0, htmlWordListDesc)


Generated by  Doxygen 1.6.0   Back to index