Pigmented code-blocks for Multi-Column layout

gravicle's Avatar

gravicle

02 Apr, 2013 10:10 PM

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.

  1. Support Staff 1 Posted by Brett on 09 Apr, 2013 03:25 AM

    Brett's Avatar

    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:

    What would be great is to have a multi column layout that marked recognizes within any custom stylesheet.

    How are you thinking that would work?

  2. 2 Posted by gravicle on 09 Apr, 2013 04:17 AM

    gravicle's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • modern.css 6.08 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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