Quantcast

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

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tobias Boege-2
Hi Benoit,

On Mon, 14 Mar 2016, [hidden email] 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

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

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Gambas-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tobias Boege-2
On Mon, 14 Mar 2016, Tobias Boege wrote:
> Attached is a picture of the class rendering its own
> source code.

Not that the picture is important, but here it is.

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

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Gambas-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-devel

highlight.png (38K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Benoît Minisini
In reply to this post by Tobias Boege-2
Le 14/03/2016 13:52, Tobias Boege a écrit :

> Hi Benoit,
>
> On Mon, 14 Mar 2016, [hidden email] 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

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Gambas-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Benoît Minisini
In reply to this post by Tobias Boege-2
Le 14/03/2016 13:58, Tobias Boege a écrit :
> On Mon, 14 Mar 2016, Tobias Boege wrote:
>> Attached is a picture of the class rendering its own
>> source code.
>
> Not that the picture is important, but here it is.
>

Anyway, that's great. :-)

--
Benoît Minisini

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Gambas-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Tobias Boege-2
In reply to this post by Benoît Minisini
On Mon, 14 Mar 2016, Beno??t Minisini wrote:

> Le 14/03/2016 13:52, Tobias Boege a ?crit :
> > Hi Benoit,
> >
> > On Mon, 14 Mar 2016, [hidden email] 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.
>

Ah! I always wondered what these table syntaxes were useful for :-)

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

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Gambas-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Benoît Minisini
Le 14/03/2016 14:08, Tobias Boege a écrit :

> On Mon, 14 Mar 2016, Beno??t Minisini wrote:
>> Le 14/03/2016 13:52, Tobias Boege a ?crit :
>>> Hi Benoit,
>>>
>>> On Mon, 14 Mar 2016, [hidden email] 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.
>>
>
> Ah! I always wondered what these table syntaxes were useful for :-)
>

Yep. I will send you another kind of implementation for what you need.

Regards,

--
Benoît Minisini

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Gambas-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-devel
Loading...