Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add code source highlight capabilities #16

Closed
Jenselme opened this Issue Apr 22, 2014 · 3 comments

Comments

Projects
None yet
2 participants

Hi,

Is it possible to add source highlighting possibilities with pygment? Possibly with the same syntax as here: http://hatta-wiki.org/Markup2#preformat

{{{#!c
/* "Hello World" written in C */
#include <stdio.h>
int main(int argc, char[]* argv)
{ printf("Hello World\n"); return 0; }
} }}

Regards,

Owner

jedie commented Apr 25, 2014

This is possible to use pygments via macro and i use it in PyLucid, see:

https://github.com/jedie/PyLucid/blob/master/pylucid_project/apps/pylucid/markup/PyLucid_creole_macros.py

http://www.pylucid.org/permalink/309/highlight-source-code#creole-markup-macro

But IMHO not in the syntax you wrote, Without code changes.

Thanks for your answer. It works perfectly with macros as you suggested.

@Jenselme Jenselme closed this Apr 28, 2014

Owner

jedie commented Apr 28, 2014

Think it would be a good idea to add a pygments example macro: #17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment