Macros

You are viewing an old version of this article. View the current version here.

The KB supports many macros to help make writing easier and clearer. Here is the list we support. This article will be updated as more macros are added.

  1. Highlight a segment of code
    {{{
from reversion.models import Revision
from .helpers import ProcessedContent
class Node(models.Model):
    language = models.CharField(max_length=10, default='en-us')

}}}

from reversion.models import Revision
from .helpers import ProcessedContent
class Node(models.Model):
    language = models.CharField(max_length=10, default='en-us')
  1. Highlight and format sql This is a shortcut for <<code lang=sql>>. It also applies an additional style to aid in formatting the whole block.
    {{{
CREATE TABLE blah;

}}}

CREATE TABLE blah;
  1. Fixed width Just a generic fixed width macro.
    <<fixed>>Blah blah blah<</fixed>>
    blah blah blah

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.