Is it possible to get a Table of contents in Notepad++

or if not, is there any text editor that is fast and can provide table of content feature. I am trying to avoid Windows Word which is way too slow for a 200 page document.


Not sure what you mean by "table of contents" for plain txt files. For plain txt files only can be built the list of first sentences (or words) from each paragraph. SynWrite editor can be configured in such way (it has configurable txt lexer).


The Amaya html editor, free from http://w3c.org/Amaya, easily creates a table of contents from the heading (h1 - h4) tagged items. (But Amaya appears a buggy mess, at least on Mac OS X.)


To build an outline, a list of active links to the headers in NotePad++. You can markup your headers anyhow, search for that markup and select 'Find All in Current Document'. Like this

Markdown headers regex example

If you need the text of your TOC, actual headers, you can use Mark tab in the Search panel to bookmark all your headers, then go Menu\Search\Bookmark\Copy Bookmarked Lines. Like this

Copy Bookmarked Lines menu item

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.