• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Suggestion PHP code copy/paste and format

Gesior.pl

Mega Noob&LOL 2012
Senator
Joined
Sep 18, 2007
Messages
2,966
Solutions
99
Reaction score
3,383
Location
Poland
GitHub
gesior
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:
Back
Top