6.9. User definable tag list

The tag list provides a convinient way to access data that you commonly want to insert in the editor. By default the tag list is populated with HTML 4.0 data. You will also find the contents of your resources folders there as well. One other group of items which may appear there is the function information from Bluefish, which will be available if Bluefish is installed on your system.

The tag list has a tree like organisation, where nodes with no children will insert data when clicked. Now although it is nice having all the preset items available you may also add your own items here for quick access. There is currently no graphical interface for this, but it is very easy to do as it is built up from XML files. Here's a quick example:


?xml version=1.0?
TagTree
node name=group name
node name=example open=lt;opentaggt; close=lt;/opentaggt;/
/node
/TagTree
This will create a group called group name with a single node in it which will insert opentag/opentag when clicked on. You do not need to provide both open and close, an open attribute is required though, although it may be any string you wish. For a larger example see $prefix/share/screem/screem.tagtree or the development manual.