<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>14469</bug_id>
          
          <creation_ts>2007-06-29 16:19:29 -0700</creation_ts>
          <short_desc>WebInspector should provide a pretty-printed view of code.</short_desc>
          <delta_ts>2011-10-20 23:26:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector (Deprecated)</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin McCullough">kmccullough</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aclark</cc>
    
    <cc>apavlov</cc>
    
    <cc>ap</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>helderjsm</cc>
    
    <cc>joepeck</cc>
    
    <cc>paulirish</cc>
    
    <cc>peter</cc>
    
    <cc>pfeldman</cc>
    
    <cc>podivilov</cc>
    
    <cc>timothy</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5877</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin McCullough">kmccullough</who>
    <bug_when>2007-06-29 16:19:29 -0700</bug_when>
    <thetext>Often code is obfuscated, especially JS code.  Which of course is where the issue is that you are trying to find/fix.  It would be a little helpful if the code could be pretty-printed for readability.  Of course line numbers wouldn&apos;t match, so this would probably have to be a view that can be switched between it and the non-pretty-printed view.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64537</commentid>
    <comment_count>1</comment_count>
    <who name="Gavin Sherlock">gsherloc</who>
    <bug_when>2007-12-17 09:10:41 -0800</bug_when>
    <thetext>If this worked in the same way as OmniWeb&apos;s implementation, which allows you to reformat the page source so that it is all indented nicely, or provides a view to what the nicely displayed text looks like, that would be great.  I also like that way that in that view it highlight elements with syntax errors or other problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68628</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-01-29 11:02:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/5712838&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93167</commentid>
    <comment_count>3</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2008-09-28 12:10:44 -0700</bug_when>
    <thetext>*** Bug 20308 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301326</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2010-10-28 14:12:16 -0700</bug_when>
    <thetext>MS IE9 Preview 6 now includes this feature:  &lt;http://blogs.msdn.com/b/ie/archive/2010/10/28/html5-using-the-whole-pc-sixth-ie9-platform-preview-available-for-developers.aspx&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315047</commentid>
    <comment_count>5</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2010-11-30 07:56:41 -0800</bug_when>
    <thetext>*** Bug 40969 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315049</commentid>
    <comment_count>6</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2010-11-30 07:56:45 -0800</bug_when>
    <thetext>*** Bug 50239 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>315052</commentid>
    <comment_count>7</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2010-11-30 07:58:04 -0800</bug_when>
    <thetext>If we do this we need to remap breakpoints or simply disable breakpoints and debugging with the pretty source. Obviously debugging would be useful so we should make it work with the pretty source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>353128</commentid>
    <comment_count>8</comment_count>
    <who name="Helder Magalhães">helderjsm</who>
    <bug_when>2011-02-17 13:03:06 -0800</bug_when>
    <thetext>*** Bug 54664 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>462575</commentid>
    <comment_count>9</comment_count>
    <who name="Alexander Pavlov (apavlov)">apavlov</who>
    <bug_when>2011-09-06 09:03:54 -0700</bug_when>
    <thetext>podivilov@chromium.org implemented JS pretty-printing a while ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>487999</commentid>
    <comment_count>10</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2011-10-20 16:47:42 -0700</bug_when>
    <thetext>How and where was this implemented? Was/is it V8 only? I don&apos;t see it in WebKit for Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>488196</commentid>
    <comment_count>11</comment_count>
    <who name="Pavel Podivilov">podivilov</who>
    <bug_when>2011-10-20 23:26:19 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; How and where was this implemented? Was/is it V8 only? I don&apos;t see it in WebKit for Safari.

JavaScript is formatted on front-end side, v8 is not engaged. Last time I checked it worked in Safari, just click &quot;{}&quot; icon at the bottom bar of scripts panel.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>