Theme Unit Test

CATEGORIES

ARCHIVES


As shown below Escape will disable parsing of VenC patterns between Escape/EndEscape pair. In the other hand, the behavior of DisableMarkup is pretty straightforward.

With Escape/EndEscape and DisableMarkup

- Hello VenC! - Hello lovely user! _Italic text for fun and non profit!_

.:SetColor::This is red text!t::red:.

Without Escape/EndEscape and DisableMarkup

  • Hello VenC!
  • Hello lovely user!

Italic text for fun and non profit!

This is red text!

Please note that VenC syntax require you to close Escape pattern with '::EndEscape:.' .

Example of Latex2MathML usage for rendering complex number expression:

z1¯.z2¯=z1.z2¯

Another example combining Latex2MathML and Table for rendering lined up equation:

z1¯.z2¯=(a+ib)¯(c+id)¯
=(aib)(cid)
=aciadibcbd
=(acbd)i(ad+bc)

Example of C++ syntax coloration with line number:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <iostream>:

class Example {
	public:
		static void do_something();
};

void Example::do_something() {
	std::cout << "Well, not really" << std::endl;
}

int main(int argc, char ** argv) {
	Example::do_something();
	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))
    try:
        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