Comments (4)
Good point. However the entire line number is clickable and should cause code to fold/unfold when clicked. I agree that there is no visual cue that this is the case. I will push an update to fix this using a bit of css on mouse over.
from brackets-code-folding.
Here is a sample of my jshint implementation where I am handling my own gutter.
Here I create/delete the gutter:
https://github.com/MiguelCastillo/Brackets-Interactive-Linter/blob/master/linterManager.js
Here I add and remove gutter markers.
https://github.com/MiguelCastillo/Brackets-Interactive-Linter/blob/master/linterReporter.js
- So, setup an activeEditorChange event and get the codemirror instance from it.
- Setup your gutter. E.g. _cm.setOption("gutters", ["interactive-linter-gutter"]);
- Add gutter marks. E.g. _cm.setGutterMarker(token.start.line, "interactive-linter-gutter", $("test")[0]);
I will go through your code and if I can get my way around in a reasonable manner I will make a pull request.
-Miguel
from brackets-code-folding.
Alright, so I put together a gutter for ya. The logic to place add the gutter and to clear it out needs to be cleaned up... It shouldn't be that much work to get it cleaned up.
https://github.com/MiguelCastillo/brackets-code-folding
from brackets-code-folding.
Cheers mate. Working on this ..
from brackets-code-folding.
Related Issues (20)
- code folding breaking on titled for loops HOT 3
- not work fine in this case, javascript
- Use character '|' on spanish keyboards HOT 2
- wrong fold marks when editing or removing folded code region
- inaccurate fold marks added to document when a folded code region is removed
- Not working at all since last update HOT 6
- Error using latest release HOT 8
- Uncheck "Enable code folding" from the settings issue HOT 4
- Beginning of lines in files are occluded HOT 13
- Version 0.3.4 doesn't fold HOT 3
- Ctrl+Shift+arrow causes error and weird behaviour HOT 4
- version not compatible :( HOT 4
- VI support for code folding HOT 2
- Not updated for 1.5 HOT 1
- What about Jade folding? HOT 1
- (imho) code-folding overloads state.json? HOT 2
- Unable to install extension HOT 2
- shortcut on W7
- Not compatible with current Brackets Version. HOT 1
- sprint 14
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 brackets-code-folding.