Page 2 of 2

Posted: Wed Apr 12, 2006 2:50 am
by timvw
That's not what i meant :) I was suggesting to replace the syntax code with the one from the

Code: Select all

-tags. Instead of only matching

Code: Select all

it would now have to match [syntax=([^\]])] instead...

Posted: Wed Apr 12, 2006 10:23 pm
by timvw
There is still something broken...

At viewtopic.php?p=254961 my code breaks when i wrap it in the syntax=php tags (so i wrapped it in php tags).

Posted: Sat Apr 15, 2006 1:33 pm
by Christopher
I'd like to request turning off the line numbers. They ruin the ability to easily copy code from the thread listing (yeah you can click on QUOTE and then copy) because the line numbers end up in the code. I don't see that they are used that often or effectively to refer to code.

Posted: Sat Apr 15, 2006 6:35 pm
by Chris Corbyn
arborint wrote:I'd like to request turning off the line numbers. They ruin the ability to easily copy code from the thread listing (yeah you can click on QUOTE and then copy) because the line numbers end up in the code. I don't see that they are used that often or effectively to refer to code.
I've turned them off for now. Seemed to copy ok for me in FF 1.5/Linux :?

I think we're gonna need to have a discussion among the mods about the [syntax ] tags. They clearly need a lot of work :?

Posted: Sat Apr 15, 2006 6:55 pm
by shiznatix
The line numbers thing I totally agree with. I just tried to copy/paste some code from here to use/edit and I had to go through 30 lines of code deleting the 1. 2. 3.....30. very annoying!

Discussion with the mods? Vote for it among the users! Democracy yes?

Posted: Sat Apr 15, 2006 7:27 pm
by Benjamin
Yeah, the line numbers look ok but they are a hassle when trying to copy code, maybe the could be placed in a separate div that floats left or something so they are not included in copy operations.

Posted: Sun Apr 16, 2006 4:56 am
by R4000
the way i do it is with tables...

Code: Select all

<table>
  <tr>
   <td>
     <pre>
        1
        2
        3
     </pre></td>
   <td>
     <pre>
        if(1 == 1){
           echo "1 equals 1!";
        }
     </pre>
   </td>
  </tr>
</table>
no issue with copying then :D

the only issue i have with copying, is it comes like:

Code: Select all

line
#
line 2
#
line 3
#
line 4
doesn't really matter, cause # parses as a comment. but it is annoying.


also add [santax]! hehe, for us idiots who cant spell.