You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Runestone/TextView/TextView.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ import UIKit
9
9
///
10
10
/// The type does not subclass `UITextView` but its interface is kept close to `UITextView`.
11
11
///
12
-
/// When initially configuring the `TextView` with a theme, a language and the text to be shown, it is recommended the use the <doc:setState(_:addUndoAction:)> function.
13
-
/// The function takes an instance of <doc:TextViewState> as input which can be created on a background queue to avoid blocking the main queue while doing the initial parse of a text.
14
-
openclassTextView:UIScrollView{
12
+
/// When initially configuring the `TextView` with a theme, a language and the text to be shown, it is recommended to use the ``setState(_:addUndoAction:)`` function.
13
+
/// The function takes an instance of ``TextViewState`` as input which can be created on a background queue to avoid blocking the main queue while doing the initial parse of a text.
14
+
openfinalclassTextView:UIScrollView{
15
15
/// Delegate to receive callbacks for events triggered by the editor.
16
16
public weak vareditorDelegate:TextViewDelegate?
17
17
/// Whether the text view is in a state where the contents can be edited.
@@ -531,7 +531,7 @@ open class TextView: UIScrollView {
531
531
///
532
532
/// The value only affects new line breaks inserted in the text view and changing this value does not change the line endings of the text in the text view. Defaults to Unix (LF).
533
533
///
534
-
/// The TextView will only update the line endings when text is modified through an external event, such as when the user typing on the keyboard, when the user is replacing selected text, and when pasting text into the text view. In all other cases, you should make sure that the text provided to the text view uses the desired line endings. This includes when calling <doc:TextView/setState(_:addUndoAction:)> and <doc:TextView/replaceText(in:)>.
534
+
/// The TextView will only update the line endings when text is modified through an external event, such as when the user typing on the keyboard, when the user is replacing selected text, and when pasting text into the text view. In all other cases, you should make sure that the text provided to the text view uses the desired line endings. This includes when calling ``TextView/setState(_:addUndoAction:)`` and ``TextView/replaceText(in:)``.
/// Asks the delegate whether to replace the specified text in the text view.
36
36
/// - Parameters:
@@ -79,12 +79,12 @@ public protocol TextViewDelegate: AnyObject {
79
79
/// Tells the delegate that the text view looped to the last highlighted range.
80
80
/// - Parameter textView: The text view that looped to the last highlighted range.
81
81
///
82
-
/// The text view will loop to the last highlighted range in response to calling <doc:TextView/selectPreviousHighlightedRange()> while the first highlighted range is selected.
82
+
/// The text view will loop to the last highlighted range in response to calling ``TextView/selectPreviousHighlightedRange()`` while the first highlighted range is selected.
/// Tells the delegate that the text view looped to the first highlighted range.
85
85
/// - Parameter textView: The text view that looped to the first highlighted range.
86
86
///
87
-
/// The text view will loop to the first highlighted range in response to calling <doc:TextView/selectNextHighlightedRange()> while the last highlighted range is selected.
87
+
/// The text view will loop to the first highlighted range in response to calling ``TextView/selectNextHighlightedRange()`` while the last highlighted range is selected.
Copy file name to clipboardExpand all lines: Sources/Runestone/TextView/TextViewState.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ import Foundation
2
2
3
3
/// Encapsulates the bare informations needed to do syntax highlighting in a text view.
4
4
///
5
-
/// It is recommended to create an instance of `TextViewState` on a background queue and pass it to a <doc:TextView> instead of setting the text, theme and language on the text view separately.
5
+
/// It is recommended to create an instance of `TextViewState` on a background queue and pass it to a ``TextView`` instead of setting the text, theme and language on the text view separately.
6
6
publicfinalclassTextViewState{
7
7
letstringView:StringView
8
8
lettheme:Theme
@@ -21,7 +21,7 @@ public final class TextViewState {
21
21
/// The value is `nil` if the line ending cannot be detected.
0 commit comments