Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No syntax highlighting for ```apacheconf codeblocks #11

Open
tyler-dot-earth opened this issue Jun 6, 2023 · 1 comment
Open

No syntax highlighting for ```apacheconf codeblocks #11

tyler-dot-earth opened this issue Jun 6, 2023 · 1 comment

Comments

@tyler-dot-earth
Copy link

tyler-dot-earth commented Jun 6, 2023

love this theme, thanks for making it.

not sure if this is a theme issue, obsidian issue, or something else — but figured i'd start here.

i have a codeblock like such in obsidian (using the apacheconf type on it):

symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0C8,U+E0CA,U+E0CC-U+E0D2,U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E62F,U+E700-U+E7C5,U+F000-U+F2E0,U+F300-U+F31C,U+F400-U+F4A9,U+F500-U+F8FF Symbols Nerd Font Mono

though here's a more typical one, a ye olde .htaccess file (again, using the apacheconf type on it):

AuthType Basic
AuthName "Restricted Content"
AuthUserFile /etc/apache2/.htpasswd
Require valid-user

... and yet the codeblock has no syntax highlighting in obsidian whilst using this theme:

Screenshot 2023-06-06 at 7 18 58 AM

i did some digging and found that Obsidian is using PrismJS for highlighting:

https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Code+blocks:~:text=Obsidian%20uses%20Prism%20for%20syntax%20highlighting.%20For%20more%20information%2C%20refer%20to%20Supported%20languages

and PrismJS does support highlighting apacheconf:
https://prismjs.com/#supported-languages:~:text=Apache%20Configuration

EDIT: and just to confirm, syntax highlighting is working for other languages:
Screenshot 2023-06-06 at 7 20 50 AM

any ideas why these codeblocks aren't being highlighted properly?

@birneee
Copy link
Owner

birneee commented Nov 21, 2023

Thanks for opening the issue.
Can you please check if this is an issue with obsidian in general and report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants