[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: About adapting editor to markdown


Okay, what I need is an .md file editor that highlights the marked-up
content. Ideally, it would look like the image I've attached, but I
understand that's beyond the capabilities of Editor, and it would be enough
for the marked-up text to appear in a different color.

Looking at the source code, I can't see exactly what I need to include in a
control inherited from Editor to treat Markdown the same way it treats CSS
or HTML, etc., and I don't think it's necessary to fork it just for this.

I've been working with TextEdit and then a converter that converts RichText
to md, but TextEdit no longer works, and besides, the HTML it handles is
far too complex for what I need. The files I use are 90% plain text with
some bold or italic words and some headings in between.

Best Regards

El vie, 3 abr 2026 a las 22:06, Benoît Minisini (<
benoit.minisini@xxxxxxxxxxxxxxxx>) escribió:

> Le 03/04/2026 à 19:56, Jorge Carrión a écrit :
> >
> >
> > I'm interested in adapting the Editor control to recognize the Markdown
> > language. Since it's a fairly simple language, I think it would be
> > straightforward. I don't think I need to fork the code within my
> > project, and I'd like to inherit the class and simply add Markdown as
> > another language it already supports.
> >
> > I believe I've already defined the TextEditorMode_MarkDown class, which
> > I've attached to this message, but I can't seem to get the Editor
> > inheritance working correctly.
> > Can anyone offer any advice or pointers on this?
> >
> > Best Regards
>
> What do you mean exactly by "adapting"?
>
> --
> Benoît Minisini.
>
>
>

Follow-Ups:
Re: Fwd: About adapting editor to markdownJorge Carrión <shordi@xxxxxxxxx>
References:
Fwd: About adapting editor to markdownJorge Carrión <shordi@xxxxxxxxx>
Re: Fwd: About adapting editor to markdownBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>