Automatic carriage return and indent?

User 2618838 Photo


Registered User
4 posts

Is there a way to make CoffeeCup Free HTML Editor automatically add and remove carriage returns and indents when code is added or removed, in order to automatically preserve an easy-to-read code layout? The attached screenshow shows what code quickly comes to look like. Note that I have turned on word wrap, which wraps the text in the editor, but it doesn't automatically indent when wrapping.

I guess that in principle, there could be two ways to do this: (1) CoffeeCup HTML Editor could add and remove carriage returns and tabs to the code whenever it becomes longer or shorter, similar to what happens when I add carriage returns manually. (2) CoffeeCup HTML Editor could display code with indents when wrapping, without adding carriage returns and tabs to the code.
User 122279 Photo


Senior Advisor
14,649 posts

You mentioned screen shot. I can't find any...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2618838 Photo


Registered User
4 posts

I probably overlooked the error message that 'Your attachment must be less than 100k'.
Reduced file size, trying again.
Attachments:

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.