Comments (4)
You need to add source.python
instead.
You can always check the "scope name" of any file by pressing Ctrl+Shift+Alt+P in the active tab. In a recent pull request I made with updates to this plugin, I made this point clearer in the README file and also added support for text/HTML files and a toggle command (fold and unfold depending on the region's state).
from sublimetext-syntaxfold.
Thanks, this way it works, but in a strange way...
Does this plugin support nested folding blocks?
So I've changed scope from python.py
to source.python
as you suggested, now the folding is like this:
I expect folding buttons to be at lines 21, 26, 36, 43.
from sublimetext-syntaxfold.
Just realized that it might be due to the plugin expecting the startMarker and endMarker to be at the line start exactly, while I have whitespace characters (well, tab characters, to be precise) there first. I guess the plugin doesn't support regex syntax for the markers?
from sublimetext-syntaxfold.
Ha, turns out it is both: the plugin expects startMarker to be exactly at line start AND it also currently doesn't support nesting (requested by #14 ).
from sublimetext-syntaxfold.
Related Issues (20)
- Fold to end of file HOT 2
- does absolutely nothing HOT 2
- Code folding not including trailing whitespace
- Nested folds HOT 1
- Nothing happens when i do "alt+*anything*" HOT 2
- No start or end markers found
- Feature: Toggle Current Fold HOT 1
- Improvement: Reduce visible text when collapsed
- Only Command Palette commands work HOT 2
- "At least start marker must be specified. Aborting request." HOT 1
- feature_request(enhancement): single line folding
- toggle_fold_current minor annoyance
- Cannot use these characters as start/end markers. HOT 2
- Feature Request: Automatically Fold all Regions in 1 Line in a Box with Name ( even Sub-Regions ) HOT 1
- Syntaxfold aborts when one entry has no start or end markers.
- Update package control HOT 3
- Doesn't seem to work in SublimeText 4 HOT 2
- Fold all not working HOT 2
- TypeError: String required
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sublimetext-syntaxfold.