Update docs
This commit is contained in:
@@ -174,6 +174,7 @@ A syntax theme ``.conf`` file consists of the following settings:
|
|||||||
shortcode = 0, 0, 0
|
shortcode = 0, 0, 0
|
||||||
keyword = 0, 0, 0
|
keyword = 0, 0, 0
|
||||||
value = 0, 0, 0
|
value = 0, 0, 0
|
||||||
|
optional = 0, 0, 0
|
||||||
spellcheckline = 0, 0, 0
|
spellcheckline = 0, 0, 0
|
||||||
errorline = 0, 0, 0
|
errorline = 0, 0, 0
|
||||||
replacetag = 0, 0, 0
|
replacetag = 0, 0, 0
|
||||||
@@ -186,3 +187,7 @@ to black, except ``background`` which defaults to white,
|
|||||||
.. versionadded:: 2.2
|
.. versionadded:: 2.2
|
||||||
The `shortcode` syntax colour entry was added, so you need to update your custom themes if you
|
The `shortcode` syntax colour entry was added, so you need to update your custom themes if you
|
||||||
made any before version 2.2.
|
made any before version 2.2.
|
||||||
|
|
||||||
|
.. versionadded:: 2.3
|
||||||
|
The `optional` syntax colour entry was added, so you need to update your custom themes if you
|
||||||
|
made any before version 2.3.
|
||||||
|
|||||||
@@ -47,15 +47,24 @@ How to Use Tags
|
|||||||
===============
|
===============
|
||||||
|
|
||||||
A "tag" in novelWriter is a word or phrase that you define as belonging to a heading. Tags are set
|
A "tag" in novelWriter is a word or phrase that you define as belonging to a heading. Tags are set
|
||||||
by using the ``@tags`` :term:`keyword`. The full format of a tag is ``@tag: tagname``, where
|
by using the ``@tags`` :term:`keyword`.
|
||||||
``tagname`` is an identifier of your choosing. You can only set *one* tag per heading, and the tag
|
|
||||||
has to be unique across all documents in the project.
|
|
||||||
|
|
||||||
.. versionadded:: 2.2
|
The full format of a tag is ``@tag: tagName, displayName``, where:
|
||||||
Tags are now case insensitive.
|
|
||||||
|
``tagName`` (Required)
|
||||||
|
is a unique identifier of your choosing.
|
||||||
|
|
||||||
|
``displayName`` (Optional)
|
||||||
|
is a display name that can be inserted into headings when you generate your manuscript. When you
|
||||||
|
build your manuscript, you can for instance insert the point of view character name into chapter
|
||||||
|
headings. By default, the ``tagName`` is used in headings, but if you use a shortened format
|
||||||
|
internally in your project, you can use this to specify a more suitable format.
|
||||||
|
|
||||||
|
You can only set *one* tag per heading, and the tag has to be unique across *all* documents in the
|
||||||
|
project.
|
||||||
|
|
||||||
After the tags have been defined, they can then be referenced in the novel documents, or
|
After the tags have been defined, they can then be referenced in the novel documents, or
|
||||||
cross-referenced in other notes. they will also show up in the :guilabel:`Outline View` and in the
|
cross-referenced in other notes. They will also show up in the :guilabel:`Outline View` and in the
|
||||||
back-reference panel when a document is opened in the viewer.
|
back-reference panel when a document is opened in the viewer.
|
||||||
|
|
||||||
The syntax highlighter will indicate to you that the keyword is correctly used and that the tag is
|
The syntax highlighter will indicate to you that the keyword is correctly used and that the tag is
|
||||||
@@ -68,6 +77,14 @@ there for you to use in whatever way you wish. Of course, the content of the doc
|
|||||||
to the manuscript, or an outline document. If you want to compile a single document of all your
|
to the manuscript, or an outline document. If you want to compile a single document of all your
|
||||||
notes, you can do this from the :guilabel:`Manuscript Build` tool.
|
notes, you can do this from the :guilabel:`Manuscript Build` tool.
|
||||||
|
|
||||||
|
.. versionadded:: 2.2
|
||||||
|
Tags are no longer case sensitive. The tags are by default displayed with the capitalisation you
|
||||||
|
use when defining the tag, but you don't have to use the same capitalisation when referencing
|
||||||
|
it later.
|
||||||
|
|
||||||
|
.. versionadded:: 2.3
|
||||||
|
Tags can have an optional display name for manuscript builds as a second parameter.
|
||||||
|
|
||||||
Example of a heading with a tag for a character of the story:
|
Example of a heading with a tag for a character of the story:
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|||||||
Reference in New Issue
Block a user