Sponsored Content
The Lounge What is on Your Mind? Changes to BBCODE for CODE and QUOTE Post 303020332 by Neo on Monday 16th of July 2018 11:56:28 PM
Old 07-17-2018
Changes to BBCODE for CODE and QUOTE

Hey,

Scrollbars still do not work in code tags (works on mobile because the mobile site does not use any table tags, only div tags), but hopefully that will change when I convert the bits for post and threads to div tags or update to Bootstrap CSS for tables.

In the meantime, I have update the CSS for each:

BBCODE_QUOTE

Code:
<!--bbcode_quote_begin-->
<style>
.bbcode_quote{
 
   margin:2px;
   padding:15px;
   border:1px solid;
   margin-right:10px;
   margin-bottom:10px;
   margin-top:20px
   overflow:auto;
   padding:10px;
   border-style:solid;
   border-color: rgba(0, 0, 0, .2);
   background-color:  rgba(0, 255, 0, .05);
   width=97%;
}
</style>

<div style="overflow:auto;">
<div class="smallfont" style="margin-bottom:8px;margin-left:4px;">$vbphrase[quote]:</div>

<div  class="bbcode_quote">
    <if condition="$show['username']">
      <div style="margin-bottom:20px;">
        <phrase 1="$username">$vbphrase[originally_posted_by_x]</phrase>
        <if condition="$postid">
        <a href="showthread.php?$session[sessionurl]p=$postid#post$postid" 
        rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/viewpost.gif" border="0" 
        alt="$vbphrase[view_post]" /></a>
        </if>
      </div>
    <div style="font-style:italic">$message</div>
    <else />
    $message
    </if>
</div>
</div>
<!--bbcode_quote_end-->

BBCODE_CODE

Code:
<style>

pre {
   
   margin:2px;
   padding:15px;
   border:1px solid;
   margin-right:10px;
   border-style:solid;
   border-color: rgba(0, 0, 0, .2);
   background-color:  rgba(0, 255, 0, .05);

   width=97%;
}
</style>

<div style="overflow:auto";>
<div  class="smallfont" style="margin-bottom:5px;margin-left:3px;">$vbphrase[code]:</div>

<pre  >$code</pre><br />
</div>

Let me know if you want to try any other background colors, from our current green with a lot of opacity:

Code:
background-color:  rgba(0, 255, 0, .05);

 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Capturing Data between first quote and next quote

I have input file like RDBMS FALIURE UTY8703 'USER_WORK.TEST' .HIghest return code '12' I want to parse data which comed between first quote till next quote USER_WORK.TEST can you please suggest how to do that (4 Replies)
Discussion started by: scorp_rahul23
4 Replies

2. Shell Programming and Scripting

Regex in grep to match all lines ending with a double quote (") OR a single quote (')

Hi, I've been trying to write a regex to use in egrep (in a shell script) that'll fetch the names of all the files that match a particular pattern. I expect to match the following line in a file: Name = "abc" The regex I'm using to match the same is: egrep -l '(^) *= *" ** *"$' /PATH_TO_SEARCH... (6 Replies)
Discussion started by: NanJ
6 Replies

3. Shell Programming and Scripting

replacing a quote in some lines with multiple quote fields

i want to replace mistaken quotes in line starting with tag 300 and relocate the quote in the correct position so the input is 223;25 224;20100428064823;1;0;0;0;0;0;0;0;8;1;3;9697;18744;;;;;;;;;;;; 300;X;Event:... (3 Replies)
Discussion started by: wradwan
3 Replies

4. Post Here to Contact Site Administrators and Moderators

Testing BBCODE URL for DragonByte

Here is the URL we will use: https://www.unix.com/post-here-contact-site-administrators-moderators/241569-doesnt-allow-me-use-code-tags.html I will put this in this text with the URL BBCODE. Now I will save the thread and test the URL. (1 Reply)
Discussion started by: Neo
1 Replies

5. Shell Programming and Scripting

Replacing all but the first and last double quote in a line with a single quote with awk

From: 1,2,3,4,5,This is a test 6,7,8,9,0,"This, is a test" 1,9,2,8,3,"This is a ""test""" 4,7,3,1,8,"""" To: 1,2,3,4,5,This is a test 6,7,8,9,0,"This; is a test" 1,9,2,8,3,"This is a ''test''" 4,7,3,1,8,"''"Is there an easy syntax I'm overlooking? There will always be an odd number... (5 Replies)
Discussion started by: Michael Stora
5 Replies

6. What is on Your Mind?

Patreon Badges Now Available as BBCODE at UNIX.COM

Dear All, We have a lot of amazing moderators and other very talented unix.com members who provide tireless top quality free technical support assistance to others. As a service to those long term unix.com members, I am making a new Patreon BBCODE badge available which can be posted in forum... (8 Replies)
Discussion started by: Neo
8 Replies
Color::Calc::WWW(3pm)					User Contributed Perl Documentation				     Color::Calc::WWW(3pm)

NAME
Color::Calc::WWW - Simple calculations with colors for the WWW. SYNOPSIS
use Color::Calc::WWW; my $background = 'green'; print 'background: ', color($background),';'; print 'border-top: solid 1px ', color_light($background),';'; print 'border-bottom: solid 1px ', color_dark($background),';'; print 'color: ', color_contrast_bw($background),';'; DESCRIPTION
The "Color::Calc::WWW" module implements simple calculations with RGB colors for the World Wide Web. This can be used to create a full color scheme from a few colors. This module is nearly identical to using the following: use Color::Calc('ColorScheme' => 'WWW', 'OutputFormat' => 'html'); However, this module also makes the functions available when not imported: use Color::Calc::WWW(); # don't import Color::Calc::WWW::color('F00'); USAGE
By default, all functions are imported. All functions recognize all HTML color keywords (through Graphics::ColorNames::WWW) and output the results in WWW-compatible formats, i.e. as one of the 16 basic HTML keywords (see Graphics::ColorNames::WWW) or as #RRGGBB. color, color_mix, ... See L<Color::Calc> for a list of available calculation functions. NOTE
AUTHOR
Claus Faerber <CFAERBER@cpan.org> LICENSE
Copyright 2004-2010 Claus Faerber. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-30 Color::Calc::WWW(3pm)
All times are GMT -4. The time now is 11:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy