Suggestion PHP code copy/paste and format

Gesior.pl

Mega Noob&LOL 2012
Joined
Sep 18, 2007
Messages
1,988
Reaction score
899
Location
PLand
About format:
Trim empty lines at start/end of code:
PHP:
<?php
echo 1;
About copy/paste code:
When I copy and paste some code to text editor it looks fine.
When I copy and paste some code to answer on forum, it adds 'line number' to every line.

Original code looks like that:
PHP:
<?php
echo 1;
exit;
(now I click Preview before creating thread to render 'view' of that code)

Code copied from 'preview' (or any post on forum) looks like that:
PHP:
[LIST=1]
[*]<?php
[*]echo 1;
[*]exit;
[/LIST]
Code copied and pasted as a quote:
  1. <?php
  2. echo 1;
  3. exit;
There also appears some '1.' after quote, which is not visible in WYSIWYG.

Suggestion: Find/write better plugin for code formatting.
 
Last edited:
Top