Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2026-01

IDE markdown highlighter

11 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin Frb
to zeljko
zeljko wrote
Hi all, Anybody have such .md highlihgter ?

Didn't MvC add on to Lazarus 4.99 very recently? SynHighlighterMarkDown is in the git main branch.

Or is that a diff kind of markdown?

Reply by email

Martin Frb
to Martin Frb
Martin Frb wrote 7 lines
On 21/01/2026 12:18, zeljko via lazarus wrote: > Hi all, > > Anybody have such .md highlihgter ? Didn't MvC add on to Lazarus 4.99 very recently? SynHighlighterMarkDown is in the git main branch.

Added to Source-editor too.

Reply by email

Martin Frb
to Michael Van Canneyt
Michael Van Canneyt wrote 15 lines
On Wed, 21 Jan 2026, Martin Frb via lazarus wrote: > On 21/01/2026 12:18, zeljko via lazarus wrote: >> Hi all, >> >> Anybody have such .md highlihgter ? > > Didn't MvC add on to Lazarus 4.99 very recently? > SynHighlighterMarkDown is in the git main branch. > > Or is that a diff kind of markdown? That is actual markdown.

Now I get confused...

Well, do you mean "actual" as

- "happens to be", i.e. yes that is what is used in md?
- "real/true" as in md uses some "false/not-real markdown"?

Because https://en.wikipedia.org/wiki/Markdown says that md is just one of the possible extensions used for files containing text with markdown.

Reply by email

zeljko
to Michael Van Canneyt: That is actual markdown. Michael.
Michael Van Canneyt wrote 15 lines
On Wed, 21 Jan 2026, Martin Frb via lazarus wrote: > On 21/01/2026 12:18, zeljko via lazarus wrote: >> Hi all, >> >> Anybody have such .md highlihgter ? > > Didn't MvC add on to Lazarus 4.99 very recently? > SynHighlighterMarkDown is in the git main branch. > > Or is that a diff kind of markdown? That is actual markdown.

Huh, I cannot find it anywhere in ide, and when I open an markdown file in SE , nothing is highlighted (using yesterdays trunk). Do I need to enable anything in IDE to get it work ?

zeljko

Reply by email

Martin Frb
to zeljko
zeljko wrote
Huh, I cannot find it anywhere in ide, and when I open an markdown file in SE , nothing is highlighted (using yesterdays trunk). Do I need to enable anything in IDE to get it work ?

Yesterday, it was just a highlighter in the SynEdit package, but not added to the IDE.

Today, I added it to the IDE. It should detect .md as file extension.

Reply by email

Michael Van Canneyt
to Martin Frb: Now I get confused... Well, do you mean "actual" as - "happens to be", i.e. yes that is…
Martin Frb wrote 20 lines
On 21/01/2026 16:31, Michael Van Canneyt via lazarus wrote: > > > On Wed, 21 Jan 2026, Martin Frb via lazarus wrote: > >> On 21/01/2026 12:18, zeljko via lazarus wrote: >>> Hi all, >>> >>> Anybody have such .md highlihgter ? >> >> Didn't MvC add on to Lazarus 4.99 very recently? SynHighlighterMarkDown is >> in the git main branch. >> >> Or is that a diff kind of markdown? > > That is actual markdown. Now I get confused... Well, do you mean "actual" as

Your question is : "Or is that a diff kind of markdown?"

My answer is: "SynHighlighterMarkDown is meant to handle actual markdown." as defined in https://spec.commonmark.org/0.31.2/

Michael.

Reply by email

Martin Frb
to Martin Frb: Yesterday, it was just a highlighter in the SynEdit package, but not added to the IDE.…
Martin Frb wrote 10 lines
On 21/01/2026 17:29, zeljko via lazarus wrote: > > Huh, I cannot find it anywhere in ide, and when I open an markdown > file in SE , nothing is highlighted (using yesterdays trunk). > Do I need to enable anything in IDE to get it work ? Yesterday, it was just a highlighter in the SynEdit package, but not added to the IDE. Today, I added it to the IDE. It should detect .md as file extension.

You can also get TML (TextMate) files for markdown, and put them into? PRIMARY_CONF_PATH/userschemes/tml/
(make sure their names do not clash with buildins, or you can't configure them).
However, they usually have too fine grained control, so the IDE will show plenty of configurable colors....

IIRC vscode has some...

The IDE has a page in the options that checks if all the rules are understood by the IDE (otherwise they must be edited / Textmate rules are only partly documented)

Reply by email

Michael Van Canneyt
to zeljko: Huh, I cannot find it anywhere in ide, and when I open an markdown file in SE , nothing…
zeljko wrote 22 lines
On 1/21/26 16:31, Michael Van Canneyt via lazarus wrote: > > > On Wed, 21 Jan 2026, Martin Frb via lazarus wrote: > >> On 21/01/2026 12:18, zeljko via lazarus wrote: >>> Hi all, >>> >>> Anybody have such .md highlihgter ? >> >> Didn't MvC add on to Lazarus 4.99 very recently? SynHighlighterMarkDown is >> in the git main branch. >> >> Or is that a diff kind of markdown? > > That is actual markdown. Huh, I cannot find it anywhere in ide, and when I open an markdown file in SE , nothing is highlighted (using yesterdays trunk). Do I need to enable anything in IDE to get it work ?

Martin added the necessary registrations in the IDE, so with today's trunk it should work.

Michael.

Reply by email