How do I format my code blocks?
This question has been asked and answered before. But some of the answers are outdated, and some don't work, and the only one that does, well, I'm hoping it's not the only option.
How can I post an entire html document into Code Review (an SE member site) without modifying the code before posting?
I want to post an entire html document into Code Review for reviewing. Here are the methods mentioned in other posts:
- Use the '010 101' button. - This appears not to be available anymore.
- Wrap in backticks. - This has unusual behaviour. Everything before the first
<div>tag inside the
<body>appears in the post as normal text, not as html code. Everything after that is rendered as I wish, as html code.
- Wrap the code in an
<html>block. - This has almost identical behaviour to the backticks.
- Wrap in a
<pre><code>block. - This works. But it requires that I first replace every
<. I will do that, but I just want to be sure I haven't missed an option that will let me paste without modifying.