[Module] MarkDown Gadget (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
ShadowStorm
Enthusiast
Enthusiast
Posts: 237
Joined: Tue Feb 14, 2017 12:07 pm

Re: [Module] MarkDown Gadget (all OS)

Post by ShadowStorm »

Thanks for these changes :)
I am French, I do not speak English.
My apologies for the mistakes.

I have sometimes problems of expression
I am sometimes quite clumsy, please excuse me and let me know.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

Update:

Draw Markdown directly onto a CanvasGadget.

Code: Select all

MarkDown::Text()
MarkDown::LoadFonts()
MarkDown::Height()
MarkDown::Width()
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
StarBootics
Addict
Addict
Posts: 984
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: [Module] MarkDown Gadget (all OS)

Post by StarBootics »

Hello Thorsten1867,

In your Parse_() procedure you create a new linked list at every call but you never freeing it : Line 5158 -> NewList Sort.s()

If I was you I will Swap line 5158 and line 5160 and at line 6252 add FreeList(Sort()).

This will be safer.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

It is a local list within a procedure. It is therefore not necessary to release it.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Re: [Module] MarkDown Gadget (all OS)

Post by Thorsten1867 »

Update:
  • new Scrollbars
  • new DPI managment
  • Bugfixes
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Post Reply