Sorry for being unclear. I need to write my own custom outline for the plugin. A very simple case would be Level 1 “begin” and Level 2 “end”. Commented lines should not be collapsed. Using the simple code in the previous thread, the first commented line is still being collapsed.