I've been fiddling around with Confluence again and found myself wanting to do some basic Cisco config highlighting with Atlassian's New Code Macro, which is fairly easy to extend. If you're keen, the code's right here - save the fragment as shBrushCisco.js
, and add it to the newcode-macro
jar (as mentioned further up that same page, you'll also have to increase the version number in atlassian-plugin.xml
and add an entry at the end of atlassian-plugin.xml
and templates/macros/code/newcodemacro-jscss.vm
). It's a little bit fiddly, eh? Never mind. I'll do a bit more work on it then see if I can get 'em to package it in a future version of the plugin.
(also, I found that the first time I'd rescan for plugins with Confluence 2.2.2, it'd barf, but if I made a new jar with another new version number and rescanned again, it was happy. oh well.)
18:58 geek · comments (0)
Comments have been closed for this post. If you've got something to say, please contact me by other means. Thanks!
Archives
...the last 3 months :
Recent Posts
Posts Recently Commented Upon
Other Recent Listening
Hair
sorta dark red with one blond bit.Wasting Time On
Links
Help Save The World
I may not (so far) run the kind of blog that posts social conscience linkage - other friends seem to have it covered better than I could manage (yes, I'm aware that's no excuse), but this doesn't mean that I don't care about the State of ThingsTM.
i donate to :
but there's other things worth worrying about too, like :
Looking For Something ?
Feed ?
yes indeed - a merged feed of my flickr photos, del.icio.us tags and posts here:
Licensing
This weblog is licensed under a Creative Commons License.