Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight fenced languages with abbreviated langauge name #109

Open
FernandoBasso opened this issue Sep 25, 2022 · 0 comments
Open

Highlight fenced languages with abbreviated langauge name #109

FernandoBasso opened this issue Sep 25, 2022 · 0 comments

Comments

@FernandoBasso
Copy link

FernandoBasso commented Sep 25, 2022

Thanks a lot for this plugin! Really appreciate it!!

I added this to my init file:

let g:asciidoctor_fenced_languages = ['c', 'ruby', 'typescript']

Then, if I open a source block with the abbreviated (extension-like) language name, highlighting doesn't happen:

[source,rb]
----
xs = [1..3]
xs.each { |n| p n }
----

If I change rb to ruby, then it does work.

The question is, should we expected the first approach to work or it is better to stay with full language names? The help mentions the first option only, so I guess that is the style supported, but though I'd ask just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant