Class HttpHighlighter
- Namespace
- MarkMyDeck.SyntaxHighlighting
- Assembly
- MarkMyDeck.dll
Syntax highlighter for HTTP requests and responses with media-type-aware body highlighting.
public class HttpHighlighter : ISyntaxHighlighter
- Inheritance
-
objectHttpHighlighter
- Implements
Constructors
HttpHighlighter()
public HttpHighlighter()
Methods
Highlight(string, string)
Highlights code by breaking it into syntax tokens.
public IEnumerable<SyntaxToken> Highlight(string code, string language)
Parameters
codestringlanguagestring
Returns
- IEnumerable<SyntaxToken>
SupportsLanguage(string)
Checks if this highlighter supports the specified language.
public bool SupportsLanguage(string language)
Parameters
languagestring
Returns
- bool