Download for PHP  R515 (beta)
Welcome » Extensions » Extension list » NewStyle
Expand

Input document

.

Upload document:

NewStyle

Extension list »

See also FormatAs.

Creates a style/markup alias so you can invoke an extension using a different name or use a custom name for one of !! marker, Paragraph or /Container styles.

For example, we have an «important» style for marking text fragments like this. We can add an alias to it:

This text is «important» as well.

This action is useful for creating shorter names that are convenient to use or temporary replacing an undefined style with a placeholder.

It works for any element that deals with styles/markups – such as formatters or actions:

PHP
class OopExample {
  protected 
$hidden;
}

A call to NewStyle must precede the fragment it’s used in: no «late» style defined.
Now it’s fine.

For this reason it’s convenient to gather all decessary definitions (including FormatAs, Term and others) in one common file and Include or RunDoc it in all project files.

Languages