Closed Bug 274174 Opened 20 years ago Closed 6 years ago

It should be easier to "pretty print" an entire JavaScript file

Categories

(Other Applications Graveyard :: Venkman JS Debugger, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: Biesinger, Assigned: rginda)

Details

currently, when I click "Pretty print" in the context menu of a file tab, it
seems to not do anything; only if I click function it will get prettyprinted.
If you click pretty print while the __toplevel__ function is selected, it'll do
the entire file.  I think it formats nested functions all on one line, though. 
That's really a js engine problem though, as Venkman is just using the same
disassembly code that function.toSource() uses.
ah, hm, I didn't think of that. I expected clicking pretty print in the context
menu of a file tab to immediately show me a prettyprint of the entire file, w/o
clicking __toplevel__ (whose existance I didn't even knew)
Summary: "pretty print" should be usable on entire file → It should be easier to "pretty print" an entire JavaScript file
QA Contact: caillon → venkman
Component is obsolete so resolving bugs as INCOMPLETE
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.