We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Html help?
A:I
Posts: 500 Forumite
in Techie Stuff
I need a quickie, how can i make a code block around a piece of code so it appears as text to users can copy and paste it rather than the code working?:beer:
0
Comments
-
You can define an <input> box and assign the code you want as it's value.
<input value="<h1>Hello</h1>">
</input>0 -
The best way I can think of doing it, is like this.
< = <
> = >
(for more info, look up HTML entities)
So instead of typing <h1> type in:
<h1> and you get <h1>
Write some code, paste it into notepad, then do a find and replace and replace all the brackets. Then paste it back into your .html file."We're not here for a long time, we're here for a good time"
"Reach for the Sky, 'cause tomorrow may never come"0 -
thankyou very much.the input box works a treat! I knew bbcode had a block but i wasn't sure about html, thanks!0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455.1K Spending & Discounts
- 246.6K Work, Benefits & Business
- 602.9K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards