Commit c6bcf4f7 authored by Denis Salem's avatar Denis Salem
Browse files

Add Code Highlight example template, update themes unit tests

parent 18165c7e
authors: ''
categories: ''
tags: ''
title: .:GetEntryTitle:.
Example of C++ syntax coloration with line number:
#include <iostream>:
class Example {
static void do_something();
void Example::do_something() {
std::cout << "Well, not really" << std::endl;
int main(int argc, char ** argv) {
return 0;
Another example of Python syntax coloration without line number:
def merge(iterable, argv):
if len(argv) != 2:
raise PatternMissingArguments(expected=2,got=len(argv))
return argv[1].join([argv[0].format(**something) for something in iterable])
except IndexError as e:
if e.args == ('tuple index out of range',):
raise PatternInvalidArgument(name="string", value=argv[0])
raise e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment