HTML code in text boxes
Posted: Wed Dec 16, 2020 11:18 am
Hello!
I have a question regarding the use of HTML code and its formatting in text boxes.
When using a longer code sequence from a code editor, for example this excerpt from jQuery UI:
Then the default formatting of the textbox is a problem, because the line breaks are used (regardless of whether the checkmark is set for "line break", this only distinguishes the white-space value normal/nowrap).
The only solution I could find so far is to paste the code in one line, which of course is totally cluttered and uncomfortable to edit afterwards:
My question therefore: is there - similar to the javascript:"";-solution for Javascript code - a solution for HTML code? Or are there other workarounds?
Thanks for your help!
I have a question regarding the use of HTML code and its formatting in text boxes.
When using a longer code sequence from a code editor, for example this excerpt from jQuery UI:
Code: Select all
<div id="accordion">
<h3>Section 1</h3>
<div>
<p>
Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
</p>
</div>
...
The only solution I could find so far is to paste the code in one line, which of course is totally cluttered and uncomfortable to edit afterwards:
Code: Select all
<div id="accordion"><h3>Section 1</h3><div><p>Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.</p></div>...
Thanks for your help!