summaryrefslogtreecommitdiff
path: root/context/data/texworks/configuration/auto-indent-patterns.txt
diff options
context:
space:
mode:
Diffstat (limited to 'context/data/texworks/configuration/auto-indent-patterns.txt')
-rw-r--r--context/data/texworks/configuration/auto-indent-patterns.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/context/data/texworks/configuration/auto-indent-patterns.txt b/context/data/texworks/configuration/auto-indent-patterns.txt
new file mode 100644
index 000000000..e0e331dac
--- /dev/null
+++ b/context/data/texworks/configuration/auto-indent-patterns.txt
@@ -0,0 +1,14 @@
+# TeXworks: Patterns for auto-indent modes
+
+# Each entry consists of two fields:
+# "name" <regex>
+
+# "name" is a name for the mode, which will appear in the Auto-Indent submenu.
+# This is enclosed in "double quotes", and followed by whitespace to separate it from <regex>.
+
+# <regex> is the regular expression; if this matches the start of the current line when <return>
+# is pressed, then the new line will be given the same prefix. The regex is not quoted.
+# (Using ^ at the start of the pattern is not strictly necessary, but improves efficiency.)
+
+# "Whitespace only" ^\s+
+# "TeX comments" ^(\s+|\s*%+\s*)