From 3e48bf849a99e52dd4e89c6efeab9fd79e4fcea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=B8vring?= Date: Sun, 15 May 2022 23:36:00 +0200 Subject: [PATCH] Updates documentation --- Sources/Runestone/Documentation.docc/Documentation.md | 2 ++ Sources/Runestone/Documentation.docc/Extensions/TextView.md | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Sources/Runestone/Documentation.docc/Documentation.md b/Sources/Runestone/Documentation.docc/Documentation.md index 42967086f..5786174ff 100644 --- a/Sources/Runestone/Documentation.docc/Documentation.md +++ b/Sources/Runestone/Documentation.docc/Documentation.md @@ -19,6 +19,8 @@ Runestone provides a text view with support for features commonly found in code - Highlight ranges in the text view. - Search the text using regular expressions. - Automatically detects if a file is using spaces or tabs for indentation. +- Specify line endings (CR, LF, CRLF) to use when inserting a line break. +- Automatically detect line endings in a text. The text view provided by Runestone does not subclass UITextView but has an API that is similar to the one of UITextView. diff --git a/Sources/Runestone/Documentation.docc/Extensions/TextView.md b/Sources/Runestone/Documentation.docc/Extensions/TextView.md index 6e0033a06..bacfc534a 100644 --- a/Sources/Runestone/Documentation.docc/Extensions/TextView.md +++ b/Sources/Runestone/Documentation.docc/Extensions/TextView.md @@ -43,10 +43,12 @@ ### Invisible Characters - ``showSpaces`` +- ``showNonBreakingSpaces`` - ``showTabs`` - ``showLineBreaks`` - ``showSoftLineBreaks`` - ``spaceSymbol`` +- ``nonBreakingSpaceSymbol`` - ``tabSymbol`` - ``lineBreakSymbol`` - ``softLineBreakSymbol`` @@ -82,6 +84,8 @@ - ``TextLocation`` - ``goToLine(_:select:)`` - ``GoToLineSelection`` +- ``moveSelectedLinesUp()`` +- ``moveSelectedLinesDown()`` ### Indenting Text