[Gambas-devel] [Gambas-devel-svn] SF.net SVN: gambas:[7634] gambas/trunk/comp/src/gb.markdown

Tobias Boege taboege at ...176...
Mon Mar 14 13:52:31 CET 2016

Hi Benoit,

On Mon, 14 Mar 2016, tobiasboe at ...1... wrote:
> Revision: 7634
>           http://sourceforge.net/p/gambas/code/7634
> Author:   tobiasboe
> Date:     2016-03-14 12:36:03 +0000 (Mon, 14 Mar 2016)
> Log Message:
> -----------
> * NEW: Markdown.Reinterpret is a new property to say if the next return of Command() should be reinterpreted as markdown or not. It is True by default for backwards compatibility.
> Modified Paths:
> --------------
>     gambas/trunk/comp/src/gb.markdown/.info
>     gambas/trunk/comp/src/gb.markdown/.src/Markdown.class
>     gambas/trunk/comp/src/gb.markdown/.src/Markup.module

I did this to implement a source code highlighter for Gambas code snippets
in a Markdown class which uses gb.eval.highlight's TextHighlighter.ToHTML(),
a la:

  @{code test.class}

The TextHighlighter already outputs HTML which should not be reinterpreted
as Markdown, obviously. Attached is a picture of the class rendering its own
source code.

Is the property name OK? Can you generate the documentation page for this
property in the wiki or tell me how to do it? Also wouldn't you agree that
syntax highlighting would be a nice addition to the wiki?


"There's an old saying: Don't change anything... ever!" -- Mr. Monk

More information about the Devel mailing list