You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I want to add an editor in my website with syntax highlighting. The easiest way that I know of to do that would be using tree-sitter.
However, I am experiencing a problem. When I try to instantiate a tree sitter highlighter with 1 line:
I get the follow error from the browser:
As soon as I remove this line, the error is gone.
Reproduction Steps:
dx new project
. Dioxus version 0.6.3. Select all the default optionstree-sitter-highlight = "0.25"
inCargo.toml
let mut highlighter = tree_sitter_highlight::Highlighter::new();
in theApp
componetWhen I undo step 3, the website severs perfectly well. Would appreciate some help!
Beta Was this translation helpful? Give feedback.
All reactions