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>
More Posts related to NotepadPlusPlus,
- Notepad++ hex editor Examples
- Are Windows Notepad files recoverable?
- How to add or remove bookmark on a line in Notepad++
- How to rename a tab in Notepad++
- Go to Line Number option in Windows Notepad
- How to Apply Themes to Notepad++
- Notepad++ Save Failed - Please check if this file is opened in another program.
- Encode/Decode URL Query String in Notepad++
- Remove duplicate lines using Notepad++
- Add comma or semicolon at end of each line Notepad++
- How to open Notepad?
- Where are Notepad++ macros stored?
- How to check about details of Notepad++ text editor
- Notepad++ Export file as HTML
- Indent/Prettify HTML File in Notepad++
- Notepad++ Reload - This file has been modified by another program. Do you want to reload it?
- List of Programming Languages Supported by Notepad++
- Notepad++ Editor alternatives for Mac OS X
- Add Custom header and footer to Windows Notepad file
- How to un-hide tab bar in notepad++
- Notepad++ is about to exit prompt message
- Launch Notepad++ html document in any web browser
- Word wrap text in Notepad++
- Disable Control Scroll Zoom-in and Zoom-out in Notepad++
- Word count in Notepad++
More Posts:
- Step-by-Step: Setting up Docker + Ubuntu Linux + Git + GitHub Tutorial - Git
- Java JDBC IN Clause Example with PreparedStatement MySQL - Java
- How to enable Do Not Disturb (DND) mode in Microsoft Teams - Teams
- Get Absolute Relative Path of File in IDEA IntelliJ - Java
- Hide cURL Outputs and Errors on Terminal - cURL
- Find and Replace Multiple different words with the same word in a text file - NotepadPlusPlus
- [Fix] java.time.zone.ZoneRulesException: Unknown time-zone ID - Java
- Program 7: Find Difference of Two Numbers - 1000+ Python Programs - Python-Programs