[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: About adapting editor to markdown
[Thread Prev] | [Thread Next]
- Subject: Re: Fwd: About adapting editor to markdown
- From: Jorge Carrión <shordi@xxxxxxxxx>
- Date: Sat, 4 Apr 2026 10:38:36 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
I forgot the Picture El sáb, 4 abr 2026 a las 10:38, Jorge Carrión (<shordi@xxxxxxxxx>) escribió: > 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. >> >> >>
Attachment:
Captura de pantalla de 2026-04-04 10-24-12.png
Description: PNG image
| Re: Fwd: About adapting editor to markdown | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Fwd: About adapting editor to markdown | Jorge Carrión <shordi@xxxxxxxxx> |
| Re: Fwd: About adapting editor to markdown | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: Fwd: About adapting editor to markdown | Jorge Carrión <shordi@xxxxxxxxx> |