New cards feature: Explicit language declaration for syntax highlighting

Posted . Visible to the public.

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:

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

Will turn into this:

body {
  font-size: 12px
}

To disable syntax highlighting entirely use the text language:

```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.

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    
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2012-07-16 20:58)