Is it possible to add title in syntax-highlighting? #97
Answered
by
razonyang
sandsoncosta
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
razonyang
Jan 10, 2025
Replies: 3 comments 3 replies
-
It's possible, track this feature on hugomods/code-block-panel#38 You can also combine the code block with details or collapse shortcodes for now. ## HTML built-in details
{{% details "Hello" true %}}
```php
echo "Hello world!"
```
{{% /details %}}
## Bootstrap collapse
{{% bs/collapse heading="Hello" expand=true %}}
```php
echo "Hello world!"
```
{{% /bs/collapse %}} |
Beta Was this translation helpful? Give feedback.
0 replies
-
This feature is available since github.com/hugomods/[email protected]. ```php {title="Hello"}
echo "Hello world!"
``` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you upgraded that module via
hugo mod get github.com/hugomods/[email protected]
?You can print and check the module version via
hugo mod graph | grep "hugomods/code-block-panel"
.Please restart the server after updating the module.