Main Area and Open Discussion > General Software Discussion
notepad2-mod: custom code folding for txt files?
4wd:
Except for a slight colour difference to Nod5's, the settings are attached.
I recommend you Export your current settings in case they differ from the default, otherwise I've included the default in the archive also.
In notepad2-mod, View->Customize Schemes ... and then Import the .ini file.
*.txt will now be identified as YAML files when opened and the relevant formatting applied.
Change the colour and/or text styles to suit your needs.
You can use WinMerge, BeyondCompare or similar to see the differences between the default and modified files.
Shades:
Now this is weird:
The first result from using YAML scheme went (very) wrong:
Using a shortened version of my test file went ok:
(spaces)
(tabs)
And then I reloaded the original test file and all folding went ok in there as well. Odd.
This occurred in this version of NotePad2-mod
4wd:
The first result from using YAML scheme went (very) wrong: -Shades (October 27, 2013, 08:05 AM)
--- End quote ---
I noticed that when I was initially playing with it, editing things in and out but, as you found, reloading the file seemed to fix it up.
Do you have Insert TABs as Spaces set, (I do) ?
Shades:
No, I didn't set that option, although I don't like to use tabs for indentations. But that is a discussion for another thread (which very likely ends up in the Basement after the tenth post... :P).
Nod5:
Shades, it feels like the modified syntax scheme doesn't always stick. But I just retried and restarted Notepad2 and then it worked.
One more thing in the YAML syntax to make use of: three hypens ( --- ) at the start of a line triggers the "Document" syntax for YAML, which can be used as a colored horizontal line separator.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version