In this example, we want to have a rule for level 4 bullets. The closest predefined rule is L3BulletItem
, which we find in the lists.wml
file. The definition of the L3BulletItem
rule is:
# L3BulletItem specifies level 3 bulleted list item. PARAGRAPH "L3BulletItem" TYPE List { LEVEL 3 KIND Bullet ACTIONS { write(*,listitem(paragraph(text()))); } }
We copy the L3BulletItem
rule and edit the copy. We change the name to L4BulletItem
, edit the comment, and simply change the level from 3 to 4. The definition of the L4BulletItem
rule is:
# L4BulletItem specifies level 4 bulleted list item. PARAGRAPH "L4BulletItem" TYPE List { LEVEL 4 KIND Bullet ACTIONS { write(*,listitem(paragraph(text()))); } }