Omitting TextArea theme doesn't highlight #4148
Answered
by
darrenburns
davidbrochart
asked this question in
Q&A
-
It seems that passing a from textual.app import App, ComposeResult
from textual.widgets import TextArea
TEXT = """\
def hello(name):
print("hello" + name)
def goodbye(name):
print("goodbye" + name)
"""
class TextAreaExample(App):
def compose(self) -> ComposeResult:
# doesn't highlight
yield TextArea(TEXT, language="python")
# does highlight
yield TextArea(TEXT, language="python", theme="monokai")
app = TextAreaExample()
if __name__ == "__main__":
app.run() Textual DiagnosticsVersions
Python
Operating System
Terminal
Rich Console options
|
Beta Was this translation helpful? Give feedback.
Answered by
darrenburns
Feb 11, 2024
Replies: 1 comment 5 replies
-
If your intention is to create a Note that this approach is new as of 0.48.0. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've made this PR in relation to this: #4149