enricoros / big-AGI

Generative AI suite powered by state-of-the-art models and providing advanced AI/AGI functions. It features AI personas, AGI functions, multi-model chats, text-to-image, voice, response streaming, code highlighting and execution, PDF import, presets for developers, much more. Deploy on-prem or in the cloud.

Home Page:https://big-agi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Soft-wrap code blocks

afanjul opened this issue · comments

commented

Hi, is there any way to soft-wrap code blocks in the AI responses? If the response contains a code block the code (html or whatever) is pretty difficult to read because the lines are not wrapped. Could you please provide a way to activate the code blocks soft-wrap?

thanks

commented

Many thanks @enricoros :-)
Is it possible to make an option to make it permanent by default? Its a bit tedious to keep pressing all the time...
Screenshot 2024-05-09 at 15 08 25

What I can do is to remember its (pressed /unpressed) state and sync it across objects.
So every code block will be wrapped once you press it, basically. (And same if you unpress)

Would that work? (I'm always looking to Remove UI and options)

commented

Would be much better, and i'm with you with the "too much options" filosofy ... thanks

Would be much better, and i'm with you with the "too much options" filosofy ... thanks

Done, will be out in main tomorrow as source, and will be live in the next stable version.