[Gambas-user] Add ToConsole to TextHighlighter class in gb.eval.highlight

Benoît Minisini g4mba5 at gmail.com
Tue Jul 7 10:10:30 CEST 2020


Le 07/07/2020 à 00:25, Brian G a écrit :
> I would like to add a function :
> 
> Public Sub ToConsole(Text As String, Optional Styles As 
> TextHighlighterStyle[]) As String
> 
> Into the TextHighlighter class in gb.eval.highlight
> 
> Then submit it for merge.
> 
> I have attached the code to this email if anyone wants to review it.
> IThe code is basically an edit of the ToHtml() function.
> 
> Would anyone object to having this function added?
> I have tested it with, LXTerminal, Mate terminal, UXTerminal, xTerm  
> Konsole and gnome-terminal
> All work as expected.
> 
> Thank You
> Brian G
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 

Please post a readable attachment if you want us to look at it.

Anyway, I can tell you that if your code is not terminal-agnostic, it 
can't go as is inside TextHighlighter.

Regards,

-- 
Benoît Minisini


More information about the User mailing list