This sample allows you to highlight C# source code. Highlighting is based on http://hilite.me web service, which is called from a background job in a truly asynchronous way – neither controller, nor any other entity is waiting for a completion. Results are delivered via WebSockets using SignalR.

All the snippets are removed every day at 12:00 AM UTC.

# hilite.me API documentation GET or POST to http://hilite.me/api with these parameters: * code: source code to format * lexer: [lexer](http://pygments.org/docs/lexers/) to use, default it 'python' * options: optional comma-separated list of lexer options * style: [style](http://pygments.org/docs/styles/) to use, default is 'colorful' * linenos: if not empty, the HTML will include line numbers * divstyles: CSS style to use in the wrapping
element, can be empty The request will return the HTML code in UTF-8 encoding.
# hilite.me API documentation GET or POST to http://hilite.me/api with these parameters: * code: source code to format * lexer: [lexer](http://pygments.org/docs/lexers/) to use, default it 'python' * options: optional comma-separated list of lexer options * style: [style](http://pygments.org/docs/styles/) to use, default is 'colorful' * linenos: if not empty, the HTML will include line numbers * divstyles: CSS style to use in the wrapping
element, can be empty The request will return the HTML code in UTF-8 encoding.