glushchenko / fsnotes

Notes manager for macOS/iOS
https://fsnot.es
MIT License
6.27k stars 463 forks source link

[REQ] Ability to inspect low-level markup/styling of note #129

Open gingerbeardman opened 6 years ago

gingerbeardman commented 6 years ago

Maybe this would be providing (hidden) access to the web inspector?

jeff-h commented 6 years ago

I'm intrigued — can I ask why you would want this?

gingerbeardman commented 6 years ago

Initially it was to try to debug what was going wrong with the syntax highlighting. I think that's been fixed now so it's very low priority.

nth-chile commented 1 year ago

Is it possible with a Swift app? AFAIK there is no web inspector

jeff-h commented 1 year ago

Yes, it's possible & pretty trivial; the WKWebView's inspector can be enabled in Swift like so:

self.webView.configuration.preferences.setValue(true, forKey: "developerExtrasEnabled")