Skip to content

fewprojects/preformatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preformatter

Convert < and > to &lt; and &gt; to use in <pre> tag.

Try it 👉 here

When to use preformatter

  • If you're writing documentation for your package to show HTML syntax that needs <pre> tag to show codes and that's where you need preformatter

  • preformatter will help you to convert this :

<pre>
<div className="container-980">
    <h1>Hello World</h1>
</div>    
</pre>
  • to this:
<pre>
&lt;div className="container-980"&gt;
    &lt;h1&gt;Hello World&lt;/h1&gt;
&lt;/div&gt;
</pre>
  • So that you can show your HTML syntax using <pre> tag