ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.