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
<<code lang=python>>>
from reversion.models import Revision
from .helpers import ProcessedContent
class Node(models.Model):
language = models.CharField(max_length=10, default='en-us')
<</code>>
<<code lang=python>>> from reversion.models import Revision from .helpers import ProcessedContent class Node(models.Model): language = models.CharField(max_length=10, default='en-us') <</code>>
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.