usercss
usercss copied to clipboard
using with webkit cocoa webview that's not safari?
I'm working on a CodeMirror based [in app] editor for SketchUp,
it also has a built-in reference browser [in iFrame at the moment] with pre-defined links for the api docs, ruby docs, tutorials etc...
I would like to apply the editors core css to the pages from these sites
If you think this would be possible, I'll fork a new branch and give it a try...
cheers john
Hello,
I've never used CodeMirror before so I can't say for certain, but if it runs in Safari, there should be no problem getting User CSS working. Otherwise I don't think it's possible. Could you give me more information regarding this CodeMirror + SketchUp setup?
On Jun 1, 2011, at 6:29 AM, driven wrote:
I'm working on a CodeMirror based [in app] editor for SketchUp,
it also has a built-in reference browser [in iFrame at the moment] with pre-defined links for the api docs, ruby docs, tutorials etc...
I would like to apply the editors core css to the pages from these sites
If you think this would be possible, I'll fork a new branch and give it a try...
cheers john
Reply to this email directly or view it on GitHub: https://github.com/sirn/usercss/issues/19
Cheers for the reply, [not sure if the direct reply got to you, so here's a copy incase]
CodeMirror is a lightweight js syntax-highlighter library that works on any modern browser or webkit based web view.
http://codemirror.net/
Sketchup is googles free 3d drawing program that uses a 'Safari' webview on macs and IE on Windows
Ruby Code Editor is a free editor that runs as a plugin inside SU, it was written for IE and run OK on a mac, it uses codemirror and jqueryUI [whichslowly I'm slowly replacing with CSS3/HTML5 for macs]
http://media.alexschreyer.net/rubyedit/
but I have a branch that I've modified to html5 and added a lots of extra html5/mac features since this demo was made
as you can see if you select the reference browser and select the api docs, you get a massive style clash [even greater than this on my version],
I'm searching for a way of modifying the imported pages to match the user selected style which can be one of 3 choices + options.
The iFrame may be a problem, but I'm looking at other options.
I can send more info if you are happy to look at it.
john
Ah, so you basically you want to fork User CSS for CodeMirror plugin within SketchUp? I don't mind if you do. I don't know if it's possible to use Safari extension within SketchUp's WebKit though.
On Jun 1, 2011, at 4:05 PM, driven wrote:
Cheers for the reply, [not sure if the direct reply got to you, so here's a copy incase]
CodeMirror is a lightweight js syntax-highlighter library that works on any modern browser or webkit based web view.
http://codemirror.net/
Sketchup is googles free 3d drawing program that uses a 'Safari' webview on macs and IE on Windows
Ruby Code Editor is a free editor that runs as a plugin inside SU, it was written for IE and run OK on a mac, it uses codemirror and jqueryUI [whichslowly I'm slowly replacing with CSS3/HTML5 for macs]
http://media.alexschreyer.net/rubyedit/
but I have a branch that I've modified to html5 and added a lots of extra html5/mac features since this demo was made
as you can see if you select the reference browser and select the api docs, you get a massive style clash [even greater than this on my version],
I'm searching for a way of modifying the imported pages to match the user selected style which can be one of 3 choices + options.
The iFrame may be a problem, but I'm looking at other options.
I can send more info if you are happy to look at it.
john
Reply to this email directly or view it on GitHub: https://github.com/sirn/usercss/issues/19#comment_1273054