Notepad++ Export file as HTML


If you have a text on your Notepad++ tab and you want to save it as a .html file format you can do that using "Export to HTML" option that is available under the Plugins tab,

  1. Be on the tab that you want to export as HTML,
  2. Goto Menu: Plugins -> NppExport -> Export to HTML
  3. Provide a name for the file.
  4. Click Save.
Notepad++ Export to HTML Option
Sample text:
This is my sample 
   text
   
      file!
Sample Notepad++ Text
Output as HTML on Web Browser

As you can see that the file is saved as HTML code making sure that the formatting of your text remains the same. This is really great you want to make a text HTML pages.

Text after saving the file:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<title>Exported from Notepad++</title>
<style type="text/css">
span {
	font-family: 'Courier New';
	font-size: 10pt;
	color: #000000;
}
.sc0 {
	font-weight: bold;
}
</style>
</head>
<body>
<div style="float: left; white-space: pre; line-height: 1; background: #FFFFFF; "><span class="sc0">This is my sample 
   text
   
      file!</span></div></body>
</html>


















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap