Adding CSS to CodeMirror

91 views
Skip to first unread message

Casey Gray

unread,
Apr 15, 2015, 3:05:43 PM4/15/15
to tiddl...@googlegroups.com
I have got a theme to work with HighlightJS, by creating a tiddler and tagging it $:/tag/Stylesheet. I created a couple because I wanted to have themes available, but only one works.

Do I need to just have a generic stylesheet tiddler, with the $:/tags/Stylesheet tag, and have all the CSS for all plugins in there?

Jeremy Ruston

unread,
Apr 17, 2015, 9:22:44 AM4/17/15
to TiddlyWiki
Hi Casey

On Wed, Apr 15, 2015 at 8:05 PM, Casey Gray <gra...@gmail.com> wrote:
I have got a theme to work with HighlightJS, by creating a tiddler and tagging it $:/tag/Stylesheet. I created a couple because I wanted to have themes available, but only one works.

Do I need to just have a generic stylesheet tiddler, with the $:/tags/Stylesheet tag, and have all the CSS for all plugins in there?

Yes, you can use a single stylesheet tiddler to contain your customisations for both the highlight and codemirror plugins. But you might find it easier to manage things by splitting them into separate stylesheet tiddlers.

Best wishes

Jeremy.

 

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0e5e65a4-e220-4726-941d-4d1c7f5750dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Casey Gray

unread,
Apr 17, 2015, 7:46:22 PM4/17/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Thanks, I don't know why Codemirror won't use the theme, I tried a number of different ways to get the stylesheet in, but none of them worked, so I decided to just let it go.

Thanks for the reply.

Casey Gray

unread,
Apr 21, 2015, 11:51:21 AM4/21/15
to tiddl...@googlegroups.com
Would anyone with a themed Codemirror mind posting their $:/config/CodeMirror and the stylesheet name?

I'm just not sure what I'm messing up, and the Codemirror documentation isn't entirely clear to me.

Or maybe I need to add it to the existing stylesheet... I'll go try that.

EDIT: that kinda worked, still doesn't look like it's supposed to, but at least I got somewhere.

whew, glad I finally figured that out, and managed to find the theme name it wanted, "solarized dark"


On Wednesday, April 15, 2015 at 12:05:43 PM UTC-7, Casey Gray wrote:
Reply all
Reply to author
Forward
0 new messages