atom-asciidoc-preview
atom-asciidoc-preview copied to clipboard
Atom live preview syntax highlighting doesn't work after update to 2.12.3
Description
follow up on this comment, Atom's live preview syntax highlighting used to work properly:
But now after update it doesn't:
- Atom version: 1.35.1 x64
- OS: Windows 10
-
asciidoc-preview
version: 2.12.3 -
language-asciidoc
version: 1.5.8
Screenshots
Your screenshot.
Syntax example
[source,scilab]
....
function y = fibonacci(N)
select N
case 0 then
y = 0;
case 1 then
y = 1;
else
y0 = 0;
y1 = 1;
y = 1;
for ii = 3:N do
y0 = y1;
y1 = y
y = y1 + y0;
end
end
endfunction
....
Are you speaking about syntax highlighting inside the preview or inside the asciidoc document?
@ldez inside the live preview
That's weird, did you enable syntax highlighting ? You might need to add :source-highlighter: highlight.js
.
2.12.3 is using Asciidoctor.js 1.5.9 ?
@Mogztter yes it is right on top of my code:
two days ago it was working even without this line as I reported.
2.12.3 is using Asciidoctor.js 1.5.9 ?
This I didn't know how to find. Would you be kind to instruct me how the Asciidoctor.js
version should be found?
P.S. FireFox addon doesn't need this line either.
@Foadsf you can use the built-in attribute asciidoctor-version
. In your document add {asciidoctor-version}
it will print the version.
@Mogztter thanks a lot {asciidoctor-version}
--> 1.5.8
Syntax highlighting is working for "common" languages:
Not sure how the Scilab language was highlighted before... Scilab is not even in this list: https://github.com/asciidoctor/atom-asciidoc-preview/blob/8d4a41d1e14d8f7fffa507a3cf6973923248f942/lib/highlights-helper.coffee#L1
@ldez Any idea ?
@Mogztter now this is strange :) I'm happy I have screenshots otherwise I would doubt my sanity :))
I get the same result with 2.12.2: