News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#71
User contributions / Re: Offline GitHub MS Document...
Last post by MrBcx - November 02, 2026, 01:48:11 AM
I took my earlier MD2HTML and converted it to MD2RTF.

It has most of the same functionality but not all, notably no "--dark" option.

One thing it does have is the ability to call it at the command line with a github RAW url.


MD2RTF https://raw.githubusercontent.com/MicrosoftDocs/win32/refs/heads/docs/desktop-src/Controls/about-combo-boxes.md


The app will resolve, download, and embed the images referenced in the github link.  Pretty useful!

The zip contains a Pelles project, files, and a Samples folder with a half dozen that I created with this tool, just to give an idea of what it produces.

Have fun!

(( Added Later ))

The forum is not showing the 0.6MB zip, so I'm making it available here:

https://bcxbasiccoders.com/bcxusers/mrbcx/md2rtf_poc.zip


#72
User contributions / Re: Offline GitHub MS Document...
Last post by TimoVJL - November 01, 2026, 09:33:35 PM
Thanks Robert.

Quite small and only <br> haven't handled / removed  from MS created files.
#73
User contributions / Re: Offline GitHub MS Document...
Last post by Robert - November 01, 2026, 08:32:08 PM
Quote from: TimoVJL on October 31, 2026, 03:51:10 PMA markdown (.md) conversion to RTF could be useful for md-files,
as RichEdit component could show them visually.

Currently win32-docs are not good consistent material, but a testbed for them.

Sadly also a MSDN help file material is just a huge trashcan with too many kind of formattings, no coherent material.

A md-format was a good idea, from it could format many kind of other formats, like bloated xhtml.

QuoteCybersecurity researchers have uncovered a sophisticated malware campaign exploiting Microsoft Help Index Files (.mshi) to deliver the notorious PipeMagic backdoor, marking a significant evolution in the threat actors' tactics since the malware's first detection in 2022.

MarkDown to RTF project here.

https://github.com/fabiov64/md2rtf
#74
Tips & tricks / Re: markdown_parser
Last post by MrBcx - November 01, 2026, 08:19:58 PM
Quote from: TimoVJL on November 01, 2026, 06:53:18 PMThanks, i will test it.

Great! Your ppj works as it should. 

FYI -- There are about a dozen and a half command line switch detections that use strcmp that
would be better changed to _stricmp, to allow the switches to be case-insensitive.

There are probably lots of other enhancements that could be made but MD2HTML is pretty usable as it is right now.

#75
Tips & tricks / Re: markdown_parser
Last post by TimoVJL - November 01, 2026, 06:53:18 PM
Thanks, i will test it.
#76
Tips & tricks / Re: markdown_parser
Last post by MrBcx - November 01, 2026, 06:51:28 PM
Quote from: TimoVJL on November 01, 2026, 09:11:39 AMA smaller markdown parser found from

https://codereview.stackexchange.com/q/297742


I used an AI agent to produce an improved usable app from the stackexchange project. 

Build.bat uses Gcc but shouldn't be too tough to make a Pelles C project from it.


My zip file contains this sample .md:

https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/Controls/about-combo-boxes.md

* We can drag and drop a *.md file onto MD2HTML.exe and it will create an html file.

* Or you can do something like this:
  C:\Temp\MD2HTML>md2html --dark about-combo-boxes.md
  about-combo-boxes.md -> about-combo-boxes.html (22227 bytes)

* I manually saved the 3 images and created a folder named images next to MD2HTML.

* I made no edits to the markdown file.

* I told the AI agent to add a command line switch, "--dark"  to output a darkmode html.
  Of course, it defaults to light mode.


I personally don't have much need for this but I thought someone on this forum might.

#77
General discussion / Re: Testing code with other C ...
Last post by Michele - November 01, 2026, 01:34:46 PM
I use Eclipse IDE for all projects, from windows to embedded hardware.
I use clang to compile windows apps.
Isn't perfect, but is very helpful on writing, compiling and testing.
#78
General discussion / Re: Testing code with other C ...
Last post by TimoVJL - November 01, 2026, 12:38:24 PM
Those headers makes things easier.

clang-cl.exe don't accept WINSDK annotations and also problems with standard headers.

VCForPython27.msi is still available too.

clang.exe hello.c -Wl,-nodefaultlib:libcmt -D_DLL -lmsvcrt -o hello_clang64.exe
#79
General discussion / Re: Testing code with other C ...
Last post by Vortex - November 01, 2026, 11:43:53 AM
Hi Timo,

I think you can use only clang.exe to compile code without depending on the other Clang binaries :

C:\clang>clang -c -m32 -Wall Hello.c -o Hello32.o


C:\clang>set INCLUDE=D:\VCForPython27\VC\include;D:\VCForPython27\WinSDK\Include


C:\clang>clang -c -m32 -Wall Hello.c -o Hello32.o
#80
Tips & tricks / Re: markdown_parser
Last post by John Z - November 01, 2026, 10:14:35 AM
Nice find Timo!

I've used the free Pandoc in the past.
https://pandoc.org/ to do the conversions, very versatile but much bigger of course.
There is also a md2html.exe included in the helpfile utilities in the FAR downloads,
which unfortunately are removed, but I have available.

John Z