Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
techee committed Nov 20, 2024
1 parent 0b4732d commit 8fad65c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
3 changes: 1 addition & 2 deletions HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ first (scintilla or ctags).
If you want to reuse an existing lexer and/or tag parser, making a
custom filetype is probably easier - it doesn't require any
changes to the source code. Follow instructions in the manual:
https://geany.org/manual/index.html#custom-filetypes. Don't forget to
update the ``[Groups]`` section in ``filetype_extensions.conf``.
https://geany.org/manual/index.html#custom-filetypes.

.. warning::
You should use the newer `[build-menu]` section for default build
Expand Down
29 changes: 0 additions & 29 deletions doc/geany.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4219,7 +4219,6 @@ support for the following has been implemented:

* Recognizing and setting the filetype (after the user has manually updated
the `filetype extensions`_ file).
* `Filetype group membership`_.
* Reading filetype settings in the ``[settings]`` section, including:
* Using an existing syntax highlighting lexer (`lexer_filetype`_ key).
* Using an existing tags parser (`tag_parser`_ key).
Expand Down Expand Up @@ -4892,34 +4891,6 @@ should look like::
[Extensions]
Make=Makefile*;*.mk;Buildfile;

Filetype group membership
^^^^^^^^^^^^^^^^^^^^^^^^^
Filetype groups are used in the `Document->Set Filetype` menu.

Group membership is also stored in ``filetype_extensions.conf``. This
file is used to store information Geany needs at startup, whereas the
separate filetype definition files hold information only needed when
a document with their filetype is used.

The format looks like::

[Groups]
Programming=C;C++;
Script=Perl;Python;
Markup=HTML;XML;
Misc=Diff;Conf;
None=None;

The key names cannot be configured.

.. note::
Group membership is only read at startup.

.. tip::
You can make commonly used filetypes appear in the top-level of the
filetype menu by adding them to the `None` group, e.g.
`None=C;Python`.

Preferences file format
-----------------------

Expand Down

0 comments on commit 8fad65c

Please sign in to comment.