From ef4277437b1b426cabf6403c02b32e057d8e1e31 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Fri, 20 Oct 2023 00:04:23 +0200 Subject: [PATCH] Add regexes and highlighting for in-line commands --- novelwriter/constants.py | 10 +++++++++- novelwriter/gui/dochighlight.py | 4 +++- sample/content/636b6aa9b697b.nwd | 8 +++++--- sample/nwProject.nwx | 8 ++++---- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/novelwriter/constants.py b/novelwriter/constants.py index 066af83b..aa28fe49 100644 --- a/novelwriter/constants.py +++ b/novelwriter/constants.py @@ -59,7 +59,15 @@ class nwRegEx: FMT_EI = r"(?, and this C with . While is just . Press Ctrl+R to see what this looks like in the view pane. The list of auto-replaced text is set in Project Settings. diff --git a/sample/nwProject.nwx b/sample/nwProject.nwx index 3128d766..807db16e 100644 --- a/sample/nwProject.nwx +++ b/sample/nwProject.nwx @@ -1,6 +1,6 @@ - - + + Sample Project Sample Project Jane Smith @@ -36,7 +36,7 @@ Main - + Novel @@ -58,7 +58,7 @@ Chapter One - + Making a Scene