LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2006, 10:09 PM   #1
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
How do I post code in a separate box on LQ?


I guess this is a usability question for LQ but I figured somebody in Programming would have done this before and I've seen it in a reply to many posts.

How does one paste code (i.e. Bash, C, whatever) in a little
HTML box which is shown in the replies here as

Code:

(Scrollable Box with code in it)

Thanks.
 
Old 08-24-2006, 10:21 PM   #2
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
Code:
you mean like this?

click on the # button in the menu bar for your message. Then stick your text inbetween the space between the tags.
 
Old 08-24-2006, 10:32 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
What's this "# button" thing? I've always just typed the tags.

Edit:Back when I first started here, I found a little tutorial about how to use the various available HTML-type functions, but I'll be darned if I can find it now.

Last edited by rickh; 08-24-2006 at 10:43 PM.
 
Old 08-24-2006, 10:44 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
If you click the "reply" button for a thread (as opposed to using the "Quick Reply" box at the bottom), you see a page that allows you to type your message. Along the top portion of the typing area is a toolbar with buttons to control font size, alignment, etc. On the far right of that toolbar are symbols/buttons to click to automatically insert the appropriate tags for you in the message. There are buttons for inserting a hypertext link, an email link, inserting code tags, html, and php tags. The button for inserting the code tags has the image of a "#" for it.
 
Old 08-24-2006, 10:46 PM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Not on mine, Debian64, Firefox (no java) there's not.

Edit: Even when I logged on with Konqueror (in which Java works) I didn't see them. I'll have to check next time I'm connected from a 32-bit OS.

Last edited by rickh; 08-24-2006 at 10:56 PM.
 
Old 08-24-2006, 11:10 PM   #6
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
And of course the tags are...

open square bracket CODE close square bracket

AND

open square bracket slash CODE close square bracket

as in
Code:
[ CODE ]Code goes here[ /CODE ]
Without any of the spaces between the square brackets and the word CODE.
 
Old 08-24-2006, 11:46 PM   #7
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
That's interesting.

I've tried it on two machines:
My laptop with WinXP and Firefox (1.5.0.6)
My server with FC4 and Firefox (1.0.8)

and both (with Java enabled) displayed the page just like I was acustomed to. I'd attach a screenshot as proof, but alas, no image tags
 
Old 08-25-2006, 02:23 AM   #8
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
A good start for every question is a look into the particular FAQ. This is taken from it and lists every available tags on this Site.

But what has this got to do with programming? O.o
 
Old 08-25-2006, 09:05 AM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by rickh
Not on mine, Debian64, Firefox (no java) there's not.

Edit: Even when I logged on with Konqueror (in which Java works) I didn't see them. I'll have to check next time I'm connected from a 32-bit OS.
In each user's Control Panel, theres an "Message Editor Interface" option that allows you to choose whether you the Basic Editor (no buttons) the standard editor (buttons, but bbcode displayed) or the WYSIWYG editor.
 
Old 08-25-2006, 11:11 AM   #10
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180

Original Poster
Blog Entries: 1

Rep: Reputation: 32
Test message

Here's some Basic Assembler Language PROGRAMMING from JES2 Exit 1 Banner Page Exit:

Code:
*---------------------------------------------------------------------*
* JES2 EXIT #1 - SETUP BASE REGISTERS AND ADDRESSING TO ALL DSECTS    *
*---------------------------------------------------------------------*
         SPACE 2
JEPX001 $ENTRY BASE=R12
         $SAVE
         LR    R12,R15
         SLR   R15,R15
         LR    R5,R1                   SETUP POINTER TO PARAMETER LIST  01/93/SD
         USING JCT,R10            SETUP DSECT ADDRESSES
         USING PCE,R13
         USING JOE,R3
         USING XPL,R5
         L     R3,PPPWKJOE             PT R3 TO THIS JOE ADDR
         L     R10,X001JCT             LOAD R10 WITH JCT ADDR           01/93SDB
         EJECT
Looking good! Thanks for the replies! :-D
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux router/firewall box for shared Internet access from 3 separate LANs? dan.patton Linux - Networking 4 04-15-2006 05:37 PM
Building PHP when MySQL is on a separate box Risc91 Linux - Software 3 03-15-2006 04:11 PM
I can't post my code yet _Lippy_ Linux - Games 1 12-18-2005 08:35 AM
Award Bios Post code 52 bulliver Linux - Hardware 5 12-04-2004 02:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration