Use CSS (aligned with our regular documentation) to highlight code
snippets as opposed to direct encoding; don't <center> some blocks.
This makes this page HTML 5 and actually also looks better.

(We probably could simply remove those tables; not sure why Jeff
added them back then, probably for the sake of coloring?)

Committed.

Gerald

Index: news/egcs-vcg.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/news/egcs-vcg.html,v
retrieving revision 1.14
diff -u -r1.14 egcs-vcg.html
--- news/egcs-vcg.html  1 Sep 2018 23:42:07 -0000       1.14
+++ news/egcs-vcg.html  2 Sep 2018 09:03:35 -0000
@@ -35,10 +35,10 @@
     <p>First you should get an impression on what the program and the
     gcc changes do.  Take the following small program.</p>
 
-      <table bgcolor="#a0a0a0">
+      <table>
        <tr>
          <td>
-           <pre>int
+           <pre class="smallexample">int
 gcd (int v1, int v2)
 {
   int l = v1 &lt; v2 ? v1 : v2;
@@ -74,10 +74,10 @@
     should dump.  E.g., giving GCC the option <code>-da</code> dumps
     the files:</p>
 
-    <table bgcolor="#a0a0a0">
+    <table>
       <tr>
        <td>
-         <pre># ../cc1 -O2 -o test.o test.c -da
+         <pre class="smallexample"># ../cc1 -O2 -o test.o test.c -da
  gcd main
 time in parse: 0.010000
 [... some lines removed ...]
@@ -93,10 +93,10 @@
     <p>These files are kind of hard to read if you are not used to
     RTL.  Example?  This is a part of <code>test.c.lreg</code>:</p>
 
-    <center><table bgcolor="#a0a0a0">
+    <table>
       <tr>
        <td>
-         <pre>[... some lines removed ...]
+         <pre class="smallexample">[... some lines removed ...]
 Basic block 5: first insn 25, last 27.
 
 Registers live at start: 6 7 24 25
@@ -133,7 +133,6 @@
          </td>
        </tr>
       </table>
-    </center>
 
     <p>All the information about the basic blocks and the instructions
     and so on is available but not the the most human friendly
@@ -143,10 +142,10 @@
     If you add the option <code>-dv</code> to your
     commandline you get a handful of extra files:</p>
 
-    <table bgcolor="#a0a0a0">
+    <table>
       <tr>
        <td>
-         <pre># ../cc1 -O2 -o test.o test.c -da -dv
+         <pre class="smallexample"># ../cc1 -O2 -o test.o test.c -da -dv
  gcd main
 time in parse: 0.010000
 [... some lines removed ...]
@@ -162,7 +161,7 @@
     <p>If you view these files using a suitable program, you'll get output
     similar to the following:</p>
 
-    <center><img src="vcg1.png" alt="completely folded graph" width="112" 
height="41" /></center>
+    <img src="vcg1.png" alt="completely folded graph" width="112" height="41" 
/>
 
     <p>These are nodes representing all the functions in the file.  If
     you expand the nodes you can get a picture like

Reply via email to