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
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:
Another example combining Latex2MathML and Table for rendering lined up equation:
= | ||
= | ||
= | ||
= |
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