Create custom list of sections.
Package offer custom panel to show navigation tree.
Python:
^([^#\n]*)#\${1,9}([spv]?)#(.*)
#$$ comment lvl 1
#$$$ comment lvl 2
print('somethink') #$# lvl 1
print('somethink') #$$# lvl 2
Markdown:
^ *#{1,9}
# heading 1
## heading 21
SOFiSTiK:
([^!\n]*)!\${1,5}!(.*)
^(!.!chapter) +=*([^=\n]*)
^ *(.?prog +[^ \n]*)(?:.*\nhead +(.+))?
(!.! +.*
LaTeX:
([^%\n]*)%\${1,5}%(.*)
^[^\%\n]*(?:\\part\*?)(?:\[.*\])?{([^}]*
^[^\%\n]*(?:\\chapter\*?)(?:\[.*\])?{([^}]*
^[^\%\n]*(?:\\section|frametitle\*?)(?:\[.*\])?{([^}]*
^[^\%\n]*(?:\\subsection|framesubtitle\*?)(?:\[.*\])?{([^}]*
^[^\%\n]*(?:\\subsubsection\*?)(?:\[.*\])?{([^}]*
^[^\%\n]*(?:\\paragraph\*?)(?:\[.*\])?{([^}]*
^[^\%\n]*(?:\\subparagraph\*?)(?:\[.*\])?{([^}]*
BibTeX:
/([^%\n]*)%\${1,5}%.*/i
^[ ]*\@.
Section can be highlighted. The default is line background highlight, but in can change to border or any another by user styles.
There are function which provide fold, unfold or toggle sections following by the headers markers. The special future is to collapse all section to create view like table of content.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.