- Find the shortcuts.xml file (in windows it's in: Users%{USERNAME}%\AppData\Roaming\Notepad++)
- Close Notepad ++
- Add the contents of the above macro into your shortcuts.xml file (as indicated in the sample)
- Save and close
- Open Notepad++
- If you wish to change the shortcut you can do so under the "macros -> modify/delete" menu.
Turns a line like this:
I'm a Heading
Into:
- [I'm a Heading](#i'm-a-heading)
With the following line at the end of your document to act as a placemarked heading:
### I'm a Heading
Section One
Section Two
Section Three
Whatever You Want and As Long As You Want
When I press shortcut Ctrl+Alt+[ on a line I want to be a heading, it is adding at the end of the file as you've described. However I could not understand how can I use this table of contents which is created at the end of the file to navigate to those sections?
For example I got this at the end of my txt file:
Section One
Section Two
Now what? What do I need to do for navigating to these respective sections.