mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
aider: Changed pygments.literal.string to appear in inverse colors.
# Context: USER: no. let's make pygments.literal.string be in inverse colors ASSISTANT: To make `pygments.literal.string` appear in inverse colors, we need to modify the `aider/io.py` file. Update the `style` dictionary in the `get_input` method: ```python aider/io.py <<<<<<< ORIGINAL if self.user_input_color: style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": f"underline {self.user_input_color}"}) ======= if self.user_input_color: style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": f"reverse {self.user_input_color}"}) >>>>>>> UPDATED ``` This change will apply the inverse color style to ticked words in the `PromptSession`.
This commit is contained in:
parent
8f40f08636
commit
fbb14b2823
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class InputOutput:
|
|||
multiline_input = False
|
||||
|
||||
if self.user_input_color:
|
||||
style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": f"underline {self.user_input_color}"})
|
||||
style = Style.from_dict({"": self.user_input_color, "pygments.literal.string": f"reverse {self.user_input_color}"})
|
||||
else:
|
||||
style = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue