For writing HTML code in between content and highlight the code We should use <pre> teg like below.
<pre>
<script>
document.write(“Hello world”);
</script>
</pre>
Note: But do not write <pre> teg in worldpre text editorl Visual mode. Write in text mode only
<script> document.write("hello world here we learn how to highlight our html code in world press text editor"); </script>