Re: Source code highlighting inside table
Posted by
mojavelinux on
URL: https://discuss.asciidoctor.org/Source-code-highlighting-inside-table-tp2681p2708.html
The column specification should be "a" not "asciidoc". I only implemented the single-letter notation in Asciidoctor, not the full word.
.Tabelle
[cols="a,>"]
|====
|
[source,cpp]
----
int a;
----
|link:test.cc[icon:tags[]]
|====
I also recommend always starting AsciiDoc table content on it's own line to make it clearer for both humans and tooling (though technically it works when on the same line as the cell separator).
-Dan