anuragsoni2000 / syntaxhighlighter

Automatically exported from code.google.com/p/syntaxhighlighter
GNU General Public License v3.0
0 stars 0 forks source link

Consider ol/li in stead of div containers for the lines. #147

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. render some code.
2. view generated source.

<div class="lines">
  <div class="line alt1">
    <code class="number">1.</code>
    <span class="content">bla</span>
  </div>
</div>

I suggest this because copy and paste will work a bit nicer.
Using ol/li the line numbers themselves won't get copied. In the current
implementation you must click the raw format link to copy it.

<ol class='lines'>
  <li class='line alt1 number'><span class='content'>blah</span></li>
</ol>

It is true that you loose one element, so perhaps this makes your styles
impossibly hard, but it would make copy/paste a bit better for what is
rendered on the screen.

Original issue reported on code.google.com by and...@gmail.com on 2 Mar 2009 at 9:37