HTML code in text boxes

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
BTO
Posts: 5
Joined: Fri Aug 07, 2020 11:30 am

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:

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>
...
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:

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>...
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!
BTO
Posts: 5
Joined: Fri Aug 07, 2020 11:30 am

Mon Jan 25, 2021 8:19 am

The question is still relevant - does no one have an idea or a tip?
User avatar
k.ary.n
Gnome
Posts: 451
Joined: Wed Aug 15, 2007 1:02 pm

Wed Feb 03, 2021 1:47 pm

Hi! Unfortunately, this is an issue and we are currently working on a solution for it.
Post Reply