Using text properties to show rendered documents

47 views
Skip to first unread message

Paul Jolly

unread,
Jun 6, 2019, 10:57:41 AM6/6/19
to vim...@googlegroups.com
Hi all,

I'm somewhat/extremely behind on the text properties work, which looks
very exciting.

In the context of govim (https://github.com/myitcv/govim), I'm
considering using text properties as a way of showing a simple
rendering of markdown/HTML within a Vim window (popup to be precise).

Rendering the document with text properties from the parsed
markdown/HTML should be relatively doable, but before I start down
this path, does anyone have any thoughts on this approach vs others?

Many thanks,


Paul

Ben Jackson

unread,
Jun 8, 2019, 6:10:50 AM6/8/19
to vim_dev

Why not just use :self markdown. and a markdown syntax file?

Paul Jolly

unread,
Jun 8, 2019, 11:20:23 AM6/8/19
to vim...@googlegroups.com
> Why not just use :self markdown. and a markdown syntax file?

Apologies, I'm probably missing something obvious here; but what is
the :self command?

John Little

unread,
Jun 8, 2019, 10:26:41 PM6/8/19
to vim_dev

The obvious typo, surely :setf markdown?

regards, John Little

Paul Jolly

unread,
Jun 9, 2019, 5:01:28 AM6/9/19
to vim...@googlegroups.com
> The obvious typo, surely :setf markdown?

Possibly, but I'm looking for the _rendered_ form of a markdown file,
i.e. the file contents minus the markdown, with some Vim
interpretation of the markdown in the form of syntax highlighting.
i.e.

*test*

results in

test

but rendered in italics.
Reply all
Reply to author
Forward
0 new messages