Coder Social home page Coder Social logo

Comments (3)

sirn avatar sirn commented on May 21, 2024

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:
#19

from usercss.

driven avatar driven commented on May 21, 2024

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

from usercss.

sirn avatar sirn commented on May 21, 2024

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:
#19 (comment)

from usercss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.