일반적인 인라인 <code>
사용의 경우 :
<code>...</code>
차단 <code>
이 필요한 곳마다
<code style="display:block; white-space:pre-wrap">...</code>
또는 <codenza>
브레이크 라이닝 블록에 대한 태그를 정의하십시오 <code>
(클래스 없음).
<script>
</script>
<style>
codenza, code {} /* noop mnemonic aide that codenza mimes code tag */
codenza {display:block;white-space:pre-wrap}
</style>`
테스트 : (주의 : 다음은 이용하는 scURIple이다 data:
, 그러므로 URI 프로토콜 / 체계를 %0A
NL 형식 코드는 필수 보존 이러한 경우 절단 및 테스트에 대한 URL 표시 줄에 붙여 - 그래서 view-source:
( ctrl- U)가 좋은보다 앞에 보이는 모든 과 아래 라인 %0A
)
data:text/html;charset=utf-8,<html >
<script>document.write(window.navigator.userAgent)</script>
<script></script>
<style>
codenza, code {} /* noop mnemonic aide that codenza mimes code tag */
codenza {display:block;white-space:pre-wrap}
</style>
<p>First using the usual <code> tag
<code>
%0A function x(arghhh){
%0A return "a very long line of text that will extend the code beyond the boundaries of the margins, guaranteed for the most part, well maybe without you as a warrantee (except in abnormally conditioned perverse environs in which case a warranty is useless)"
%0A }
</code>
and then
<p>with the tag blocked using pre-wrapped lines
<code style=display:block;white-space:pre-wrap>
%0A function x(arghhh){
%0A return "a very long line of text that will extend the code beyond the boundaries of the margins, guaranteed for the most part, well maybe without you as a warrantee (except in abnormally conditioned perverse environs in which case a warranty is useless)"
%0A }
</code>
<br>using an ersatz tag
<codenza>
%0A function x(arghhh){
%0A return "a very long line of text that will extend the code beyond the boundaries of the margins, guaranteed for the most part, well maybe without you as a warrantee (except in abnormally conditioned perverse environs in which case a warranty is useless)"
%0A }
</codenza>
</html>