formattingtags¶
Provide HTML Tag management and Formatting Tag access class
Bases:
object
Static Class for HTML Tags to be access around the code the list is managed by the Options Tab.
Add a list of tags to the list.
Parameters: tags – The list with tags to add. Each tag has to be a
dict
and should have the following keys:- desc
- The formatting tag’s description, e. g. Red
- start tag
- The start tag, e. g.
{r}
- end tag
- The end tag, e. g.
{/r}
- start html
- The start html tag. For instance
<span style="-webkit-text-fill-color:red">
- end html
- The end html tag. For example
</span>
- protected
- A boolean stating whether this is a build-in tag or not. Should be
True
in most cases.
- temporary
- A temporary tag will not be saved, but is also considered when displaying text containing the tag. It
has to be a
boolean
.
Provide access to the html_expands list.
Load the Tags from store so can be used in the system or used to update the display.
Removes an individual html_expands tag.
Saves all formatting tags except protected ones
- new_tags
- The tags to be saved..