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
CSS(4)							     Kernel Interfaces Manual							    CSS(4)

NAME
css - DEC IMP-11A LH/DH IMP interface SYNOPSIS
/sys/conf/SYSTEM: NCSS css_controllers # DEC/CSS IMP11-A ARPAnet IMP interface DESCRIPTION
The css device provides a Local Host/Distant Host interface to an IMP. It is normally used when participating in the DARPA Internet. The controller itself is not accessible to users, but instead provides the hardware support to the IMP interface described in imp(4). When configuring, the imp(NIMP) pseudo-device is also included. DIAGNOSTICS
css%d: not alive. The initialization routine was entered even though the device did not autoconfigure. This is indicates a system prob- lem. css%d: can't initialize. Insufficient UNIBUS resources existed to initialize the device. This is likely to occur when the device is run on a buffered data path on an 11/750 and other network interfaces are also configured to use buffered data paths, or when it is configured to use buffered data paths on an 11/730 (which has none). css%d: imp doesn't respond, icsr=%b. The driver attempted to initialize the device, but the IMP failed to respond after 500 tries. Check the cabling. css%d: stray output interrupt csr=%b. An interrupt occurred when no output had previously been started. css%d: output error, ocsr=%b icsr=%b. The device indicated a problem sending data on output. css%d: recv error, csr=%b. The device indicated a problem receiving data on input. css%d: bad length=%d. An input operation resulted in a data transfer of less than 0 or more than 1008 bytes of data into memory (according to the word count register). This should never happen as the maximum size of a host-IMP message is 1008 bytes. 3rd Berkeley Distribution August 20, 1987 CSS(4)
All times are GMT -4. The time now is 03:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy