Sponsored Content
Full Discussion: Text formatting
Contact Us Post Here to Contact Site Administrators and Moderators Text formatting Post 302937129 by Don Cragun on Tuesday 3rd of March 2015 06:56:20 PM
Old 03-03-2015
Quote:
Originally Posted by clx
Thanks for the info. All I was interested, to save my time. selecting text and hit ctrl+B is definitely quicker than typing [*b] and [*/b] around it?

Apologies if I am not aware of any other quicker way?
Also, how do you type literal bbcodes? For above, I googled and found a trick of adding non printable chars in the tags. but surely there should be a way?


EDIT : Well that trick didn't work here.
First: The tags to use to surround bold text are [b] and [/b] without the asterisks.

Second: When you are creating a post, hit the Go Advanced button, and you get more formatting tools at the top of the editing window. The leftmost three in the 2nd line allow you to select text and hit one button for bold text, one button for italic text, and one button for underlined text. Not quite as easy as ctl-B, ctl-I, or ctl-U (since you have to move the mouse), but at least you don't have to remember the tags.

Hope this helps..
These 2 Users Gave Thanks to Don Cragun For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

formatting text

Hi, I am having a file containing entries like: .iso.org.dod.internet.mgmt.mib-2.system.sysName.0 .iso.org.dod.internet.mgmt.mib-2.system.sysLocation.0 .iso.org.dod.internet.mgmt.mib-2.system.sysServices.0 .iso.org.dod.internet.mgmt.mib-2.system.sysORLastChange.0... (16 Replies)
Discussion started by: esham
16 Replies

2. UNIX for Dummies Questions & Answers

Text Formatting

I have a file like this with 1 lac lines. 1 2 3 4 5 6 7 8 9 0 I would like to format the above text file 1 2 3 4 5 6 7 8 9 0 (7 Replies)
Discussion started by: aravindj80
7 Replies

3. UNIX for Dummies Questions & Answers

Text file formatting

Hi all! I'm new in unix, and faced with some difficulties. So I have text file f.e. "textfile" which contains rows like: aaa bbb ccc ddd How could I format it, so the file looks like: aaabbb cccddd Thanks in andvance (5 Replies)
Discussion started by: consta.v
5 Replies

4. Shell Programming and Scripting

text formatting

Hi, any idea input: mr.smith stvenson: /address #/tel no/ personal data profile. mrs.smith stevenson: /address #/tel no/occupation/ personal data profile. output: mr.smith stvenson address #: tel no: personal data profile. mrs.smith stevenson address #: tel no: occupation:... (7 Replies)
Discussion started by: kenshinhimura
7 Replies

5. UNIX for Dummies Questions & Answers

Formatting TEXT

Hello, I have the following lines in a text file: /var/spool/postfix/defer/1/15C86B0547C /var/spool/postfix/defer/1/19AD1B054A2 /var/spool/postfix/defer/2/25A16B05493 /var/spool/postfix/defer/6/626FBB05496 /var/spool/postfix/defer/6/634D4B0544A /var/spool/postfix/defer/6/6A8ACB05499... (2 Replies)
Discussion started by: mojoman
2 Replies

6. Shell Programming and Scripting

Text formatting

I have an input file as below. 1 Sanjib Gayen 2 Chetan Jadhav 3 Vijaykumar Uddi 4 Pinaki Sarkar I want to generate an output file as below. 1-Sanjib Gayen 2-Chetan Jadhav (4 Replies)
Discussion started by: R0H0N
4 Replies

7. Shell Programming and Scripting

Text formatting

A folder is having n number of files each file is having column names in it .Hence using below code . for file in /xxx/sss/* do filename=$( basename $file ) sed -e '1,2d; $d; /^*$/d; /selected\.$/d' ${file} | \ sed -e '1s/^/INSERT INTO '${filename}' VALUES (/; $!s/$/,/; $s/$/);/'... (6 Replies)
Discussion started by: rocking77
6 Replies

8. Shell Programming and Scripting

Help with Text formatting

I am generating the o/p as: BLANSWER 112747 112747 TBLQSTN 983 692 INITIATIVE 35 35 PAIGN 3122 3538 IGNCONTACT 90136 93534 IGNGROUP 27 27 AIGNSTEP 16899 20437 AIGNTYPE ... (1 Reply)
Discussion started by: karumudi7
1 Replies

9. Shell Programming and Scripting

Text formatting help

I have bunch of files with data's like below. archive.log.0104 ar0104_akl ar0731_rln ar0731_rsl M70148I need to compile all those files into a single file(.xls file) in the below format. 1st row is file name - should come in 1st column in excel In 2 - 4 row, all entries starts with... (13 Replies)
Discussion started by: vasanth_123
13 Replies

10. Shell Programming and Scripting

Help Me with the formatting of text

Hi, I am new to this forum; I need a help for my scripting problem. I have made a script in Unix which is extracting a report but the issue is that report is not in a proper format. Original Report Ex: Field 1....................... a b c d e f g Field 2............. @ID.@ID Field... (4 Replies)
Discussion started by: tush
4 Replies
Button(3I)						    InterViews Reference Manual 						Button(3I)

NAME
ButtonState, Button, TextButton, PushButton, RadioButton, CheckBox - interactive buttons SYNOPSIS
#include <InterViews/button.h> DESCRIPTION
Button is a class of interactors that can set the value of a piece of state. ButtonState is a class of objects that contain a value and a list of buttons that can set its value. A value is either an integer or an arbitrary pointer. TextButton is a subclass of Button that has an associated text label to be displayed inside or to the right of the button. PushButton, RadioButton, and CheckBox are subclasses of TextButton that provide particular displays for buttons. Each kind of button will display itself differently for each of the five possible cases: ``enabled'', when the button is listening to input, ``disabled'', when the button is not listening, ``chosen'', when the button's value is equal to its button state's value, ``hit'', when a button that is not chosen first receives a DownEvent, and ``same-hit'', when a button that is chosen receives a DownEvent. When a button receives a DownEvent, it calls the virtual Refresh() to update its display. It then reads input waiting for an UpEvent. If the UpEvent coordinates are also within the button, then it calls the virtual Press(). The default Press operation sets the associated state's value to the button's value. A button can have a list of attached buttons. When a button is not chosen its attached buttons are ``disabled'', meaning they ignore all input events. BUTTONSTATE OPERATIONS
ButtonState() ButtonState(int) ButtonState(void*) Define a button state optionally with an initial value. void Attach(Button*) Add a button to the list associated with a button state. The button will be notified when the button state's value is modified. void Detach(Button*) Remove a button from the list associated with a button state. void GetValue(int&) void GetValue(void*&) Get the value of a button. void SetValue(int) void SetValue(void*) Set the value of a button state and notify all the buttons associated with the state. void operator=(ButtonState&) Copy the value of one button state to another. The button list associated with the source button state is not copied. BUTTON OPERATIONS
void PushButton(const char* text, ButtonState* s, int v) void PushButton(const char* text, ButtonState* s, void* v) Construct a button with text in the center and a polygon on the outside. The polygon is like a rectangle, but with rounded corners. When chosen, the entire button is drawn with foreground and background colors reversed. void RadioButton(const char* text, ButtonState* s, int v) void RadioButton(const char* text, ButtonState* s, void* v) Construct a button with a circle on the left and text on the right. When hit, a second circle is drawn inside the first. When cho- sen, a filled circle is drawn inside the outer circle. void CheckBox(const char* text, ButtonState* s, int on, int off) void CheckBox(const char* text, ButtonState* s, void* on, void* off) Construct a button with a rectangle on the left and text on the right. When hit, a second rectangle is drawn inside the first. When chosen, two diagonal lines are drawn connecting the opposite corners of the rectangle. When a checkbox is pressed the first time, it sets s to off if the value is on and sets s to on otherwise. Subsequent presses swap the values of the checkbox and s. void Attach(Button*) Add to this button's list of associated buttons. These buttons are enabled when the button is chosen and disabled when it is not chosen. void Detach(Button*) Remove a button from this button's list of associated buttons. void Disable() Stop listening to input events. Disabled buttons are typically ``grayed out'' by drawing a half-filled rectangle in the background. void Enable() Start listening to input events. void Choose() Make the button as chosen, enabling any associated buttons. void Handle(Event&) If the event type is DownEvent and the button is enabled, call Refresh and read events until an UpEvent occurs. If the button is the target of the UpEvent, then call Press. virtual void Press() Take the appropriate action for the button being pressed. The default is to set the associated state to the button's value, which will trigger all related buttons to update their display. virtual void Refresh() Update the button display. void SetDimensions(int width, int height) Specify the natural size of the button. The default size is a function of the size of the text. This routine is obsolete; use Interactor::Reshape instead. void UnChoose() Mark the button as not chosen, disabling any associated buttons. SEE ALSO
Event(3I), Interactor(3I) InterViews 15 June 1987 Button(3I)
All times are GMT -4. The time now is 09:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy