-
Notifications
You must be signed in to change notification settings - Fork 383
Open
Labels
Description
Following question at #13540
I wonder if we should try add a callout collapsed by default at https://quarto.org/docs/authoring/code-annotation.html#annotation-syntax
and try to have its content synced to
quarto-cli/src/resources/filters/modules/constants.lua
Lines 75 to 135 in 932e21c
-- for a given language, the comment character(s) | |
local kLangCommentChars = { | |
r = {"#"}, | |
python = {"#"}, | |
julia = {"#"}, | |
scala = {"//"}, | |
matlab = {"%"}, | |
csharp = {"//"}, | |
fsharp = {"//"}, | |
c = {"/*", "*/"}, | |
css = {"/*", "*/"}, | |
sas = {"*", ";"}, | |
powershell = {"#"}, | |
bash = {"#"}, | |
sql = {"--"}, | |
mysql = {"--"}, | |
psql = {"--"}, | |
lua = {"--"}, | |
cpp = {"//"}, | |
cc = {"//"}, | |
stan = {"#"}, | |
octave = {"#"}, | |
fortran = {"!"}, | |
fortran95 = {"!"}, | |
awk = {"#"}, | |
gawk = {"#"}, | |
stata = {"*"}, | |
java = {"//"}, | |
groovy = {"//"}, | |
sed = {"#"}, | |
perl = {"#"}, | |
ruby = {"#"}, | |
tikz = {"%"}, | |
js = {"//"}, | |
d3 = {"//"}, | |
node = {"//"}, | |
sass = {"//"}, | |
scss = {"//"}, | |
coffee = {"#"}, | |
go = {"//"}, | |
asy = {"//"}, | |
haskell = {"--"}, | |
dot = {"//"}, | |
mermaid = {"%%"}, | |
apl = {"⍝"}, | |
yaml = {"#"}, | |
json = {"//"}, | |
latex = {"%"}, | |
typescript = {"//"}, | |
swift = { "//" }, | |
javascript = { "//"}, | |
elm = { "#" }, | |
vhdl = { "--"}, | |
html = { "<!--", "-->"}, | |
markdown = {"<!--", "-->"}, | |
gap = { "#" }, | |
dockerfile = { "#" }, | |
ocaml = { "(*", "*)"}, | |
rust = { "// "} | |
} | |
local kDefaultCodeAnnotationComment = {"#"} |
This would be an improvement. But we could also add a footnote (or margin note) for url to where to look in the code on github.