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,
- Be on the tab that you want to export as HTML,
- Goto Menu: Plugins -> NppExport -> Export to HTML
- Provide a name for the file.
- Click Save.

This is my sample
text
file!


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>
- Notepad++ Editor alternatives for macOS
- How to add or remove bookmark on a line in Notepad++
- Notepad++ do not show CRLF characters
- Reduce the size of Tabs on Notepad++
- Delete blank lines in a file using Notepad++
- Fix: Notepad++ bottom status bar not visible
- Notepad++ Hex Editor
- How to show End of Line Characters in File using Notepad++
- [Tutorial] Write And Run Python Code In Notepad++ Editor
- How to install XML Tools Plugin Notepad++
- Customizing Notepad++ New Document Line Encoding: CR/LF/CR LF
- How to remove blank lines from a file using Notepad++
- Column Mode Editing in Notepad++
- Convert text to random case using Notepad++
- How to recover unsaved notepad file Windows 10
- How to delete all text after a character or string in Notepad++
- Setting up Cloud feature with Notepad++
- Install Notepad++ silently using Windows Powershell
- Using Document Map in Notepad++
- Enabling Notepad++ Dark Theme
- [Fix] Notepad++ tab not visible (hidden)
- Where are Notepad++ macros stored?
- Multiple line editing in Notepad++
- Alternatives for Notepad++ on Mac in 2021
- [Nopepad++] How to add text at end of each line
- Mac OS X Taking Screen Capture using Terminal - Mac-OS-X
- Setup synonyms or alias or thesaurus in SharePoint - SharePoint
- The Android Virtual Device myEmulator is currently running an emulator and cannot be deleted. - Android
- Fix - SharePoint Online List column JSON formatting for person group field displays [object, Object] - SharePoint
- [fix] psycopg2 Error: pg_config executable not found - Python
- How to enable, create and use Virtual Breakout Rooms in Microsoft Teams - Teams
- How to query database table names [MySQL/Oracle/SQL Server] - MySQL
- [fix] RabbitMQ: AuthenticationFailureException ACCESS_REFUSED Login refused authentication mechanism PLAIN - 2022