TEMP CODE EXAMPLE

Post Reply
User avatar
LHammonds
Site Admin
Site Admin
Posts: 541
Joined: Fri Jul 31, 2009 6:27 pm
Are you a filthy spam bot?: No
Location: Behind You
Contact:

TEMP CODE EXAMPLE

Post by LHammonds » Wed Sep 06, 2017 8:55 am

phpBB Forums Post

The purpose:
A custom BBCode that works just like the CODE tag section but allows just the COLOR tag so important bits can be highlighted.

Current problem 1:
When Firefox end-users (no matter the version) select the text in the code box, none of the carriage returns are preserved and pastes like a long, continuous string.

Current problem #2:
Very long lines will go off screen and not stay within the selection window...looking very odd.

Custom Code Tag Example:
$wgLDAPDomainNames = array("mydomain.com"); $wgLDAPServerNames = array("mydomain.com"=>"work.mydomain.com"); $wgLDAPUseLocal = false; $wgLDAPEncryptionType = array("mydomain.com"=>"ssl","mydomain.com"=>"tls"); ### This is an example of a long line of text that will continue off screen if the end-user monitor is not wide enough as well as their browser dimensions inside that monitor(s) ## $wgLDAPSearchStrings = array("mydomain.com"=>"work\\USER-NAME"); $wgLDAPDisableAutoCreate = array("mydomain.com"=>false);
Original Code Tag Example:

Code: Select all

$wgLDAPDomainNames = array("[color=red]mydomain.com[/color]");
$wgLDAPServerNames = array("[color=red]mydomain.com[/color]"=>"[color=red]work.mydomain.com[/color]");
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array("[color=red]mydomain.com[/color]"=>"ssl","[color=red]mydomain.com[/color]"=>"tls"); ### This is an example of a long line of text that will continue off screen if the end-user monitor is not wide enough as well as their browser dimensions inside that monitor(s) ##
$wgLDAPSearchStrings = array("[color=red]mydomain.com[/color]"=>"[color=red]work[/color]\\USER-NAME");
$wgLDAPDisableAutoCreate = array("[color=red]mydomain.com[/color]"=>false);

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest