Replies: 1 comment 1 reply
-
|
The standard Inline comment symbol in C is not Quarto uses ---
format: html
code-annottions: true
---
```c
#include <stdio.h>
int main() { /* <1> */
printf("Hello, World!\n");
return 0;
}
```
1. This is a comment for line 1.
``` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Quarto version 1.8.25 on Windows 11
I found the closed issue #5060 "Code Annotation for C/C++ & VHDL not handled correctly" when experimenting with Quarto for the very first time. My goal is to include plain C code in my presentation and the annotation feature just looks great.
However using the standard inline comment style in C
//is not recognized by the preview and revealjs renderer. It is recognized correctly for C++ code though, here is an examplethe revealjs output as screenshots:
However the PDF output shows a different appearance: now the comments have been replaced in both code examples, but the ordered list for the C-code example has not been modified:
Beta Was this translation helpful? Give feedback.
All reactions