We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9434bb5 commit 794ee55Copy full SHA for 794ee55
src/textual/highlight.py
@@ -54,6 +54,7 @@ class HighlightTheme:
54
55
def guess_language(code: str, path: str) -> str:
56
"""Guess the language based on the code and path.
57
+ The result may be used in the [highlight][textual.highlight.highlight] function.
58
59
Args:
60
code: The code to guess from.
@@ -107,7 +108,7 @@ def highlight(
107
108
code: A string to highlight.
109
language: The language to highlight.
110
theme: A HighlightTheme class (type not instance).
- tab_size: Number of spaces in a tab. Defaults to 8.
111
+ tab_size: Number of spaces in a tab.
112
113
Returns:
114
A Content instance which may be used in a widget.
0 commit comments