I'm not a huge fan of the syntax highlighting of Asciidoctor in Visual studio code.
It seems, just like the sublime plugin for asciidoc, to get hung up on what it thinks are unescaped sequences. (Or I just don't know how to write asciidoc lol). Using the Atom One Dark syntax theme and the plugin from Joao Pinto, the following code breaks the syntax highlighting for the rest of the document. I'm not sure if the language or the color theme is at fault.
It highlights from the _git__ps1 all the way through the end of the code block as purple/italics
== .bashrc Modifications
I actually had to modify my existing bashrc file to get git and gitk working.
**Plus**, the `_git__ps1` substitution doesn't work by default.
Your bashrc can be found in your `%HOME%` directory.
**NOTE**, this is just an example PS1, please modify yours to avoid losing content. The change here is the insertion of a `'$'` before any `\n` in the PS1.
[source, bash]
----
# To make available the __git_ps1 substitution command
source /c/msys64/mingw64/share/git/completion/git-prompt.sh
export PS1='\e[0m\e[0;96m[\w]\e[0m\e[0;33m$(__git_ps1) \e[0m\e[1;37m'$'\n-> \e[0m'
----
Matthew D. Groves is a guy who loves to code. It doesn't matter if it's C#, jQuery, or PHP: he'll submit pull requests for anything. He has been coding professionally ever since he wrote a QuickB...
As best I can tell, the AsciiDoc plugin for Code uses the asciidoctor command line to generate HTML. So it's possible there is some issue in the AsciiDoc markup that you're writing. Maybe give it a try with the command line tool directly?
Matthew D. Groves is a guy who loves to code. It doesn't matter if it's C#, jQuery, or PHP: he'll submit pull requests for anything. He has been coding professionally ever since he wrote a QuickB...
I'm not a huge fan of the syntax highlighting of Asciidoctor in Visual studio code.
It seems, just like the sublime plugin for asciidoc, to get hung up on what it thinks are unescaped sequences. (Or I just don't know how to write asciidoc lol). Using the Atom One Dark syntax theme and the plugin from Joao Pinto, the following code breaks the syntax highlighting for the rest of the document. I'm not sure if the language or the color theme is at fault.
It highlights from the
_git__ps1all the way through the end of the code block as purple/italicsAs best I can tell, the AsciiDoc plugin for Code uses the asciidoctor command line to generate HTML. So it's possible there is some issue in the AsciiDoc markup that you're writing. Maybe give it a try with the command line tool directly?
If the command line works fine, you may want to open an issue on Github, so that Joao is at least aware: github.com/joaompinto/asciidoctor-...
I actually did just drop an issue on github regarding this: github.com/joaompinto/asciidoctor-....
After working with the owner of the color theme, he determined that the language plugin was not exposing scopes correctly (or not at all).
I checked the html output with
asciidoctor -o, and all is well.Oh, I see, it's the syntax highlighting of the asciidoctor markup itself, not the plugin that I'm using. Cool, glad you got it resolved :)