Posted about 8 years ago. Visible to the public.

New cards feature: Explicit language declaration for syntax highlighting

Makandra cards will auto-detect the language used for syntax highlighting.

This auto-detection sometimes fails for short code snippets. In such cases you can explicitly declare the language for Github-style code blocks:

Copy
```css body { font-size: 12px } ```

Will turn into this:

Copy
body { font-size: 12px }

To disable syntax highlighting entirely use the text language:

Copy
```text I am nothing without pretend I know my faults can't live with them I am nothing without a man I know my thoughts but I can't hide them ```

Result: monospaced text without highlighting.

Copy
I am nothing without pretend I know my faults can't live with them I am nothing without a man I know my thoughts but I can't hide them
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Henning Koch
Last edit:
about 8 years ago
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more