airi icon indicating copy to clipboard operation
airi copied to clipboard

UI: Code Block improvements

Open cybardev opened this issue 8 months ago • 6 comments

Would be nice if code blocks had syntax highlighting, and horizontal scroll when it's too wide (alternatively wrap around, but I personally prefer scrolling more than wrapping).

Image

For context, I am using qwen2.5-coder:1.5b on ollama, running firefox on MacBook Air M1 (16GB RAM).

cybardev avatar Aug 21 '25 20:08 cybardev

Hey, would love to contribute on this issue.

Arjunmehta312 avatar Aug 22 '25 16:08 Arjunmehta312


``` 1. Duplicate of #403 ### 

1234ROSAL avatar Aug 23 '25 13:08 1234ROSAL

@1234ROSAL No. It's not a duplicate.

  1. 403 > 383, so #383 (an earlier issue) cannot be a duplicate of #403 (a later issue)
  2. #403 has absolutely nothing in common with #383

If this was an LLM-generated comment then... 🐸

cybardev avatar Aug 23 '25 15:08 cybardev

@cybardev Thanks :)

Arjunmehta312 avatar Aug 23 '25 16:08 Arjunmehta312

@cybardev I've updated my PR as well which does solve this issue and have made the changed @nekomeowww asked me to as well please would you let me know your thoughts. Pretty excited to contribute here :)

Arjunmehta312 avatar Aug 23 '25 16:08 Arjunmehta312

@Arjunmehta312 Yeah, I saw your PR but didn't comment on it cuz I'm not too familiar with the tech stack (Rust + Web). Thanks for picking up on this issue. 😊

cybardev avatar Aug 23 '25 19:08 cybardev