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
Hi! 馃憢 I actually don鈥檛 use Swift, or this project, but I have spent time thinking about a similar problem: how to use highlight.js if not compiling to HTML.
Highlight.js (and Prism, another popular highlighter in JS) rely heavily on HTML, but I built lowlight and refractor to work around that. Instead, they return JSON, which you could use to create NS strings instead so you don鈥檛 need an HTML parser!
Hi! 馃憢 I actually don鈥檛 use Swift, or this project, but I have spent time thinking about a similar problem: how to use highlight.js if not compiling to HTML.
Highlight.js (and Prism, another popular highlighter in JS) rely heavily on HTML, but I built lowlight and refractor to work around that. Instead, they return JSON, which you could use to create NS strings instead so you don鈥檛 need an HTML parser!
This is also what鈥檚 used in react-syntax-highlighter and react-native-syntax-highlighter
Anyway, just an idea, feel free to close!
The text was updated successfully, but these errors were encountered: