Comments (3)
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
johnReply to this email directly or view it on GitHub:
#19
from usercss.
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.
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.
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.
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)
- styles input text box resizable HOT 1
- Make an option to hide the contextual menu. HOT 1
- Support for import/export external stylesheets.
- A way to store the DB for users who sync extensions HOT 1
- css being applied to other sites? HOT 4
- User CSS should sanitize domain rules without HTTP protocol prefix HOT 1
- [request] Switch user agent on a per site basis HOT 1
- Font suggestion HOT 2
- Per-site CSS is sometimes applied globally HOT 3
- Modification/Creation of styes fails on Safari Version 5.1 (6534.50) HOT 3
- Jumping scrolling on the left list. HOT 2
- Delete Confirmation HOT 2
- Properly handle large set of items in manager's sidebar.
- checkbox for enabling/disabling styles. HOT 3
- update.plist HOT 2
- Support exclusion of domains HOT 1
- Toggle extension on/off from a toolbar HOT 1
- Not using a trailing slash on domain applies style to random sites HOT 2
- Saved CSS randomly changed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usercss.