inherit
257321
0
Nov 5, 2023 19:38:45 GMT -8
CollieflowersBark
127
January 2019
foxypaws
|
Post by CollieflowersBark on Feb 3, 2019 12:18:38 GMT -8
Hi! Weird issue. I would like to display a line of raw code for users to copy in a container in one of my board headers. I cannot figure out how to do this though. I've tried <pre>, <code>, and <plaintext>. None work. The first two simply do nothing and the last breaks my board.
If it's possible, please let me know, thanks!
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,014
January 2018
retread
|
Post by Retread on Feb 3, 2019 14:42:55 GMT -8
Hi! Weird issue. I would like to display a line of raw code for users to copy in a container in one of my board headers. I cannot figure out how to do this though. I've tried <pre>, <code>, and <plaintext>. None work. The first two simply do nothing and the last breaks my board.
If it's possible, please let me know, thanks!
It seems possible, but I can't guarantee the results. Wrapping code with <xmp> tags seem to work but that's a deprecated tag. I don't know if will display in all browsers or if there will be other issues.You could try copy/paste of what you see here. Replace YOUR CODE HERE with the code you want to display. <xmp style="white-space:pre-wrap;border:1px solid;margin:0 auto;padding:10px;background:lightgrey none;">YOUR CODE HERE</xmp> You can change the styling. As-is, you'll get the background-color, border, and padding like what's shown in the post. Do NOT remove the white-space:pre-wrap; as that's necessary to prevent long lines from extending beyond the width of the display.
|
|
inherit
257321
0
Nov 5, 2023 19:38:45 GMT -8
CollieflowersBark
127
January 2019
foxypaws
|
Post by CollieflowersBark on Feb 3, 2019 14:56:38 GMT -8
Retread, that appears to be doing exactly what I want, thank you!
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,014
January 2018
retread
|
Post by Retread on Feb 3, 2019 15:09:34 GMT -8
You're welcome.
|
|