We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems that passing a theme to a TextArea is mandatory to get syntax highlighting, is it intended?
theme
TextArea
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()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems that passing a
theme
to aTextArea
is mandatory to get syntax highlighting, is it intended?Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: