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

Benoît Minisini gambas at ...1...
Mon Mar 14 14:04:09 CET 2016


Le 14/03/2016 13:52, Tobias Boege a écrit :
> 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:
>> -----------
>> [GB.MARKDOWN]
>> * 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?
>
> Regards,
> Tobi
>

You didn't have to add a property for that.

You just had to a implement a special support of "[[ html" / "]]" for 
verbatim HTML in the Enter() and Leave() command. I will do it for you 
later.

Regards,


-- 
Benoît Minisini




More information about the Devel mailing list