From adb934701975f6b0214475d1a8d0d1ce727b9d4d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 16:32:59 +0200 Subject: Adding upstream version 3.38.1. Signed-off-by: Daniel Baumann --- help/C/gedit-plugins-modelines.page | 100 ++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 help/C/gedit-plugins-modelines.page (limited to 'help/C/gedit-plugins-modelines.page') diff --git a/help/C/gedit-plugins-modelines.page b/help/C/gedit-plugins-modelines.page new file mode 100644 index 0000000..5da7b97 --- /dev/null +++ b/help/C/gedit-plugins-modelines.page @@ -0,0 +1,100 @@ + + + + + + + Daniel Neel + dneelyep@gmail.com + + + Jim Campbell + jcampbell@gnome.org + + Emacs, Kate and Vim-style modelines support for gedit. + + +Modelines + +

The Modelines plugin allows gedit to analyze the + lines of text at the start and end of a file, and then apply a set of + document preferences to the file. The Modelines plugin supports a + subset of the options used by the Emacs, Kate and + Vim text editors.

+ +

To enable the Modelines plugin, select gedit + PreferencesPluginsModelines.

+ +
+ General Modeline Options +

The following options can be set using gedit modelines:

+ +

Tab width

+

Indent width

+

Inserting spaces instead of tabs

+

Text Wrapping

+

Right margin width

+
+ + +

Preferences set using modelines take precedence over the ones specified + in the preference dialog.

+
+
+ +
+ Emacs Modelines + +

The first two lines of a document are scanned for Emacs + modelines, and gedit supports the following Emacs + modeline options:

+ +

Tab-width

+

Indent-offset

+

Indent-tabs-mode

+

Text auto-wrap

+
+

For more information on Emacs modelines, visit the + GNU Emacs + Manual.

+
+ +
+ Kate Modelines + +

The first and last ten lines a document are scanned for Kate + modelines, and gedit supports the following Kate + modeline options:

+ + +

tab-width

+

indent-width

+

space-indent

+

word-wrap

+

word-wrap-column

+
+ +

For more information about Kate modelines, visit the + Kate website.

+
+ +
+ Vim Modelines +

The first and last three lines a document are scanned for Vim + modelines, and gedit supports the following Vim + modeline options:

+ + +

et (expandtab)

+

ts (tabstop)

+

sw (shiftwidth)

+

wrap

+

textwidth

+
+ +

For more information on Vim modelines, visit the + Vim website.

+
+
-- cgit v1.2.3