Comments (5)
it wouldn't be hard to add. in fact, a way to expand/collapse only a single level of all children of a specific node would be really helpful too. the hard part is how to make a clean, obvious interface for it.
from dump_r.php.
on the other hand it doesnt need to be obvious, just documented. maybe shift
+click
and ctrl
+click
from dump_r.php.
this should give you much more flexibility than just expand/collapse all. if you have an array of objects and those objects have a bunch of expandable properties but you're only interested in the top level ones, you can do ctrl
+click
on the first array item and have all array items expand to 1 level at the same time. if you do ctrl
+shift
+click
, it will expand all array items to full depth.
from dump_r.php.
Excellent thank you very much.
from dump_r.php.
thanks for the feedback. i think i still prefer my version cause there's less "stuff" there. the tree lines may look cool but are not actually very helpful. if you scroll the parent out of view and you have no siblings to reference, those lines dont help you at all, no one counts them. i think it's easy enough to determine where you are. the same thing for the key-wrapping. it's obvious they're keys and while the wrapping may make a bit faster to search for them in some cases, i prefer it to be clean and just hit "find next" or F3 a couple times. the expanded spacing is probably preferable for most people, but i like it more compact.
it's pretty painless to change through, so glad you like it. FYI, you can actually do the key-wrapping with CSS too, using generated content. http://dev.opera.com/articles/view/css-generated-content-techniques/
from dump_r.php.
Related Issues (20)
- add extended resource info
- provide debug_backtrace info for each call.
- add max char length for string values, w/ text-overflow: ellipsis
- gen random dump id so key's min-width doesnt affect other dumps
- option to display arrays of simple objects/assoc-arrays as tables HOT 1
- Great library, need "class" support... HOT 3
- Why pass by by reference HOT 7
- allow reference unfolding via cloneNode HOT 5
- apparantly print_r() outputs closure's `parameters`, maybe implement this?
- cli colors HOT 1
- Unicode string support HOT 4
- assoc array bug HOT 2
- Please tag stable versions HOT 5
- allow for configurable paths to alternate css/js for theming
- optionally show whitespace characters/tabs/EOL
- switch to font coloring rather than background coloring
- Provide a way to pass-in the name of the "input parameter" and calling file HOT 6
- Multiple dump_r's on a single line breaks variable name output HOT 4
- Option to not output "file-line" contents HOT 2
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 dump_r.php.