Categories
FREE Freeware Notepad Replacement Notepad++ notepad++ examples Open Source SourceForge

5 Great Notepad++ Features

Notepad++ is probably the best text editor for Windows – and it’s FREE. It has a huge range of features for working with text files, scripts, HTML files, etc.  Here are some pointers on just a few of those features.

1. Set Language to match your code
One very nice feature of Notepad++ is the ability to color pieces of code. This is very useful when writing C, SQL, HTML or other types of files, allowing you to easily visually distinguish between functions, reserved words, comments, text, and other types of symbols and expressions in your code.

Notepad++ will automatically detect your code based upon the language selected. You can specify the language yourself or Notepad++ will set it based on the file extension.

HTML as text before specifying language.

HTML code after specifying language.

2. Bulk find & replace
If you want to replace a certain entry in your file(s), Notepad++ is the ticket. Not only can it instantly search through all entries in a file, it can search all open files or even all files in a directory (including sub-directories), including, matching only certain file types.

3. Search and replace using regular expressions
When it comes to finding what you want, Notepad++ is not limited to mere words. You can also use powerful regular expression to match dynamic entries. For example, the below search will find (and replace) all tags in the source of HTML files, regardless of the actual image size specified:

Of course, some knowledge of regular expressions is required to use this feature. Not surprisingly, these regular expressions will also serve you well if you dabble in the Linux command line with sed or awk commands.

4. Tidy HTML code

If you’re writing web articles, there’s a fair chance your code will include a bit of unnecessary breaks, misaligned tags and so forth. Notepad++ can Tidy your HTML code.
For example, here is some unformatted text:

Which we want to format with HTML:

5. Save all open files
While this may not sound too exciting, imagine you have several open files – Notepad++ behaves like Firefox in this regard and opens documents in tabs – each one changed after you ran a bulk find & replace earlier. Saving them one by one can be tedious. Notepad++ saves you the hassle. You can save all open files at once.

Similarly, you can close them all at once.

Conclusion

Notepad++ is an extremely powerful and useful tool. We only scratched the surface on its features. With Notepad++ you can use macros or function completion, compare documents, export files to other formats, and a whole lot more.

Notepad++ also has many useful plugins and it comes in a portable version.

More on Notepad++

Categories
Freeware FTP Linux Notepad Replacement Notepad++ Utility Windows

Notepad++ – source code editor for Windows (FreeWare)

Notepad++ is a source code editor for Windows. It is distributed as free software. The project is hosted on SourceForge.net, from where it has been downloaded over sixteen million times.[1]

This project, based on the Scintilla editor component, is written in C++ with only Win32 API calls using only the STL in order to increase performance and reduce program size. The aim of Notepad++ is to reduce overall power consumption by using efficient binaries that require less CPU power.[2]

Notepad++ is available only for the Microsoft Windows operating system. However, users can still get Notepad++ to work on other platforms like Linux and Mac OS X, using software such as Wine.

Programming languages
Notepad++ supports syntax highlighting and syntax folding for 48 programming, scripting, and markup languages.[2] It attempts to automatically detect the language that a given file uses, using a modifiable list of file extension bindings. Users may also manually set the current language, overriding the extension’s default language. The program also supports autocompletion for a subset of the API of some programming languages.

Users can also define their own language (for syntax highlighting) and its respective API (for autocompletion) by using the built-in User Language Define System.[2] Users may configure the syntax highlighting’s font styles per element, per language, and the resulting formatted script may be printed in full-color (WYSIWYG). Additionally, Notepad++ displays indent guidelines when source code is indented with tab characters, and highlights closing braces, brackets and tags.

Some of its features include:

  • Auto-completion (language and file)
  • Bookmarks
  • Syntax highlighting (and brace and indent highlighting)
  • Drag-and-drop
  • File status auto-detection
  • Regular expression find and replace
  • Split screen editing (“View/Clone”) and synchronized scrolling
  • Zooming
  • Spell checker (requires Aspell)
  • Tabbed document interface
  • FTP Browser (plug-in included in standard installation)
  • Support for various file formats including unicode.
  • Find and replace text or text strings of text over multiple documents simultaneously.

Although Scintilla does not support multiline regular expression search and replace, Notepad++ does contain support for plugins which help mitigate this fact.

Notepad++ home page
Notepad++ download