myst-vs-code icon indicating copy to clipboard operation
myst-vs-code copied to clipboard

Add syntax highlighting for directives specified using the colon fence

Open jmarknixon opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I love how the colon fence plugin renders directives that use it (for example, the note admonition) in previews. I'd like to see the plugin also perform syntax highlighting in the source.

Describe the solution you'd like When using the colon fence with a directive, I'd like to see the same highlighting I see when I use the backtick or tilde fence. See the attached screenshot.

Describe alternatives you've considered N/A

Additional context Screenshot 2023-04-13 at 2 44 16 PM

jmarknixon avatar Apr 13 '23 19:04 jmarknixon

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Apr 13 '23 19:04 welcome[bot]

~@jmarknixon It looks like highlighting for colon fences was introduced in https://github.com/executablebooks/myst-vs-code/commit/81db9724125928743381a84088343430417388f7. So, according to the commit message, I think this feature should work if we add 'colon_fence' to the myst.preview.extensions setting.~

Nope, I'm totally wrong—that only enables colon fences rendering in the preview. Seems obvious now. Whoopsie 😅

atrnh avatar May 31 '23 19:05 atrnh

Given the current structure of the extension ,this should probably go to https://github.com/chrisjsewell/vscode-myst-syntax

LoicGrobol avatar Feb 12 '24 11:02 LoicGrobol