Pigmented code-blocks for Multi-Column layout
I wanted to have Github-style pigmented code blocks for the
Multi Column style. Adding the code was easy enough (the new
modern.css is attached) but a working Multi Column layout could
only be achieved by overwriting the default modern.css file instead
of using a custom theme. The issues with the same css used as a
custom theme was a malfunctioning firstdiff
method and
absence of horizontally scrolling columns.
Apparently, Marked processes the placement of the first-edit marker
differently for styes named modern.css. So, the same CSS
causes malfunction when used as a differently named custom
style.
Though overwriting modern.css works temporarily, it'd be overwritten with an app update or reinstall. This is not ideal. What would be great is to have a multi column layout that marked recognizes within any custom stylesheet.
- modern.css 6.08 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 09 Apr, 2013 03:25 AM
The multi-column theme requires special handling for scrolling, diff marker placement, etc. It would be up to you to provide the scripts within your document to cover these functions as needed.
Essentially the multi-column theme is a hack. It doesn't function like other themes and isn't easily replicated using the available preferences in Marked.
I'm not sure what this means:
How are you thinking that would work?
2 Posted by gravicle on 09 Apr, 2013 04:17 AM
Thanks for the reply Brett. I understand that the multi-column layout needs special handling and that's the reason my custom css file did not work.
Custom css for multi-column could carry certain tag in the header comments that Marked could interpret and then handle these styles as it would modern.css.