The color is added depending on the language. You can check whether Swift is added in the highlighted_languages and if detection still does not work, you can also manually set the language for a code block.
Moin
2
Related topics
| 글 | 댓글 | 조회수 | 활동 | |
|---|---|---|---|---|
| Add new highlightjs languages | 1 | 219 | 5월 13, 2025 | |
| HighlightJS is auto-selecting wrong language | 5 | 1200 | 2월 17, 2020 | |
| Configure which programming languages are available for syntax highlighting | 6 | 2865 | 8월 26, 2024 | |
| Choosing code highlight styles | 3 | 1287 | 4월 18, 2016 | |
| Be sure to get user input on which language the preformatted text is | 2 | 383 | 3월 23, 2024 |