Skip to main content
Known Participant
November 23, 2023
Question

Text as code in the UXP plugin panel

  • November 23, 2023
  • 1 reply
  • 454 views

Hi all!
Is it possible to write text as code in the UXP plugin panel?


For example:

https://www.google.com

 or

<pre>
   <code>
      Hello World!
   </code>
</pre>
This topic has been closed for replies.

1 reply

m1b
Community Expert
Community Expert
November 23, 2023

I'm pretty sure it would be the same way you would do it in html. Using CSS for example. Is it not working the way you expect? - Mark

AntonNAuthor
Known Participant
November 23, 2023

Thank you for your advice! Design using css may be a good option, but unfortunately it is not possible to change the standard font; it looks the same as other text on the panel.

m1b
Community Expert
Community Expert
November 23, 2023

Hi @AntonN, unfortunately I'm not experienced with UXP plugin panels, so I don't have an answer. I assumed you would be able to use CSS to style the elements. Now, looking at your screenshot, I wonder if you are using pre-built controls that might not allow overriding the styling. Sorry, I'm out of my depth. Hopefully someone with knowledge will answer soon.

- Mark