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

Bug: Does not show highligt syntax For Elixir in edit mode. #277

Open
cocoaway opened this issue Aug 13, 2024 · 1 comment
Open

Bug: Does not show highligt syntax For Elixir in edit mode. #277

cocoaway opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cocoaway
Copy link

cocoaway commented Aug 13, 2024

Does not show colored syntax in edit mode for Elixir. For other languages it works correctly.

Describe the bug

Elixir no syntax highlighting

Steps to reproduce

Write code in code block and mark it as elixir code.

def myfun() do
# add some code here
{alfa: <<0,1,2,3,4>>}
end

Expected behaviour

Highlighted syntax.

Current behaviour

Environment

  • Plugin Version: V 1.1.7
  • Obsidian Version: Version 1.6.7 (Installer 1.4.16)
  • Platform: Desktop
  • OS: macOS Sonoma 15.5
  • Theme: Obsidian Default
  • CSS Snippets: No

Screenshots

Screenshot 2024-08-13 alle 10 10 40

Expected to see it as in reading mode:

Screenshot 2024-08-13 alle 10 24 25

Additional context

In editing mode if I try to change the language the syntax highlight works perfectly. For example if I write python instead of elixir:
Screenshot 2024-08-13 alle 10 28 27

@cocoaway cocoaway added the bug Something isn't working label Aug 13, 2024
@MikeMMS
Copy link

MikeMMS commented Nov 10, 2024

Obsidian uses different programs to do highlighting in reading view and editing view/live preview: https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Code+blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants