Skip to content

No syntax highlighting for ```apacheconf codeblocks #11

@tyler-dot-earth

Description

@tyler-dot-earth

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions