Nevron Open Vision Documentation
Nevron.Nov.Text Namespace / NSyntaxHighlighter Class
Fields Properties Methods


In This Topic
    NSyntaxHighlighter Class Members
    In This Topic

    The following tables list the members exposed by NSyntaxHighlighter.

    Protected Fields
     NameDescription
    Protected Fieldstatic (Shared in Visual Basic)An array of the comment end characters.  
    Protected FieldThe char array to parse. (Inherited from Nevron.Nov.NStringParser)
    Protected FieldThe inclusive end position in the char array at which to end parsing. (Inherited from Nevron.Nov.NStringParser)
    Protected FieldThe current position in the char array. (Inherited from Nevron.Nov.NStringParser)
    Protected FieldThe inclusive start position in the char array from which to begin parsing. (Inherited from Nevron.Nov.NStringParser)
    Protected FieldToken start position.  
    Top
    Public Properties
     NameDescription
    Public Property  
    Public PropertyDetermines whether the CSS styles should be inlined in "style" attributes or not. By default set to false.  
    Public Property  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Creates a syntax highligher for the given programming language.  
    Public MethodOverloaded. Analyzes the given source code stream, highlights its syntax and returns the resulting HTML and CSS code as a stream.  
    Public MethodOverloaded. Parses the given chars starting from the specified start position and ending at the specified end position (inclusive). (Inherited from Nevron.Nov.NStringParser)
    Top
    Protected Methods
     NameDescription
    Protected MethodOverloaded. Checks whether the next characters in the char array match the ones in the given string starting from the current reading position and from the specified position in the string. A case sensitive check is performed. (Inherited from Nevron.Nov.NStringParser)
    Protected Method  
    Protected MethodCall when a comment is met.  
    Protected MethodReads the character at the current position without advancing the parser pointer. (Inherited from Nevron.Nov.NStringParser)
    Protected Method  
    Protected MethodReads the character at the current position as an out parameter and advances the parser pointer. (Inherited from Nevron.Nov.NStringParser)
    Protected MethodOverloaded. Reads a token from the current position (inclusive) to the first occurrence of the given stop char (exclusive). The position of the first occurrence of the stop char becomes the new reading position. Returns false if the parser has reached its end position. (Inherited from Nevron.Nov.NStringParser)
    Protected Method

    Reads to the given close char, regarding other open and close chars as nested scopes. For example the following string will be read as a single token and not only to the first closing brace:

    {

    p.test { font-family:verdana,sans-serif;font-size:14px; }

    }

    (Inherited from Nevron.Nov.NStringParser)
    Protected MethodReads until a non white space char is met. The parser's position is then positioned at this non white space character position. (Inherited from Nevron.Nov.NStringParser)
    Protected MethodTrims the leading and trailing white space characters and updates the start and end indexes. (Inherited from Nevron.Nov.NStringParser)
    Top
    See Also