Sponsored Content
Full Discussion: Text formatting
Contact Us Post Here to Contact Site Administrators and Moderators Text formatting Post 302937019 by Scott on Monday 2nd of March 2015 05:04:43 PM
Old 03-02-2015
It has nothing to do with BBCode, but with how browsers turn <textarea>'s into rich-text areas that render text like a word processor would. Then, when refreshed vB would interpret that "rich text" and replace the contents with BBCode (i.e. replacing THIS with [b][i]THIS[/i][/b].

FireFox does it, and it drives me up the wall (one of about 17 reasons I can't use that annoying browser Smilie)
These 2 Users Gave Thanks to Scott 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
QTextBrowser(3qt)														 QTextBrowser(3qt)

NAME
QTextBrowser - Rich text browser with hypertext navigation SYNOPSIS
#include <qtextbrowser.h> Inherits QTextEdit. Public Members QTextBrowser ( QWidget * parent = 0, const char * name = 0 ) QString source () const Public Slots virtual void setSource ( const QString & name ) virtual void backward () virtual void forward () virtual void home () virtual void reload () Signals void backwardAvailable ( bool available ) void forwardAvailable ( bool available ) void sourceChanged ( const QString & src ) void highlighted ( const QString & link ) void linkClicked ( const QString & link ) void anchorClicked ( const QString & name, const QString & link ) Properties bool modified - whether the contents have been modified (read only) bool overwriteMode - this text browser's overwrite mode (read only) bool readOnly - whether the contents are read only (read only) QString source - the name of the displayed document int undoDepth - this text browser's undo depth (read only) bool undoRedoEnabled - whether undo and redo are enabled (read only) Protected Members virtual void keyPressEvent ( QKeyEvent * e ) DESCRIPTION
The QTextBrowser class provides a rich text browser with hypertext navigation. This class extends QTextEdit (in read-only mode), adding some navigation functionality so that users can follow links in hypertext documents. The contents of QTextEdit is set with setText(), but QTextBrowser has an additional function, setSource(), which makes it possible to set the text to a named document. The name is looked up in the text view's mime source factory. If a document name ends with an anchor (for example, "#anchor"), the text browser automatically scrolls to that position (using scrollToAnchor()). When the user clicks on a hyperlink, the browser will call setSource() itself, with the link's href value as argument. You can track the current source by connetion to the sourceChanged() signal. QTextBrowser provides backward() and forward() slots which you can use to implement Back and Forward buttons. The home() slot sets the text to the very first document displayed. The linkClicked() signal is emitted when the user clicks a link. By using QTextEdit::setMimeSourceFactory() you can provide your own subclass of QMimeSourceFactory. This makes it possible to access data from anywhere, for example from a network or from a database. See QMimeSourceFactory::data() for details. If you intend using the mime factory to read the data directly from the file system, you may have to specify the encoding for the file extension you are using. For example: mimeSourceFactory()->setExtensionType("qml", "text/utf8"); This is to ensure that the factory is able to resolve the document names. QTextBrowser interprets the tags it processes in accordance with the default style sheet. Change the style sheet with setStyleSheet(); see QStyleSheet for details. If you want to provide your users with editable rich text use QTextEdit. If you want a text browser without hypertext navigation use QTextEdit, and use QTextEdit::setReadOnly() to disable editing. If you just need to display a small piece of rich text use QSimpleRichText or QLabel. [Image Omitted] [Image Omitted] See also Advanced Widgets, Help System, and Text Related Classes. MEMBER FUNCTION DOCUMENTATION
QTextBrowser::QTextBrowser ( QWidget * parent = 0, const char * name = 0 ) Constructs an empty QTextBrowser called name, with parent parent. void QTextBrowser::anchorClicked ( const QString & name, const QString & link ) [signal] This signal is emitted when the user clicks a an anchor. The link is the value of the href i.e. the name of the target document. The name is the name of the anchor. See also linkClicked(). void QTextBrowser::backward () [virtual slot] Changes the document displayed to the previous document in the list of documents built by navigating links. Does nothing if there is no previous document. See also forward() and backwardAvailable(). Example: helpviewer/helpwindow.cpp. void QTextBrowser::backwardAvailable ( bool available ) [signal] This signal is emitted when the availability of backward() changes. available is FALSE when the user is at home(); otherwise it is TRUE. Example: helpviewer/helpwindow.cpp. void QTextBrowser::forward () [virtual slot] Changes the document displayed to the next document in the list of documents built by navigating links. Does nothing if there is no next document. See also backward() and forwardAvailable(). Example: helpviewer/helpwindow.cpp. void QTextBrowser::forwardAvailable ( bool available ) [signal] This signal is emitted when the availability of forward() changes. available is TRUE after the user navigates backward() and FALSE when the user navigates or goes forward(). Example: helpviewer/helpwindow.cpp. void QTextBrowser::highlighted ( const QString & link ) [signal] This signal is emitted when the user has selected but not activated a link in the document. link is the value of the href i.e. the name of the target document. Example: helpviewer/helpwindow.cpp. void QTextBrowser::home () [virtual slot] Changes the document displayed to be the first document the browser displayed. Example: helpviewer/helpwindow.cpp. void QTextBrowser::keyPressEvent ( QKeyEvent * e ) [virtual protected] The event e is used to provide the following keyboard shortcuts: <center>.nf </center> Reimplemented from QTextEdit. void QTextBrowser::linkClicked ( const QString & link ) [signal] This signal is emitted when the user clicks a link. The link is the value of the href i.e. the name of the target document. The link will be the absolute location of the document, based on the value of the anchor's href tag and the current context of the document. See also anchorClicked() and context(). void QTextBrowser::reload () [virtual slot] Reloads the current set source. void QTextBrowser::setSource ( const QString & name ) [virtual slot] Sets the name of the displayed document to name. See the "source" property for details. QString QTextBrowser::source () const Returns the name of the displayed document. See the "source" property for details. void QTextBrowser::sourceChanged ( const QString & src ) [signal] This signal is emitted when the mime source has changed, src being the new source. Source changes happen both programmatically when calling setSource(), forward(), backword() or home() or when the user clicks on links or presses the equivalent key sequences. Example: helpviewer/helpwindow.cpp. Property Documentation bool modified This property holds whether the contents have been modified. bool overwriteMode This property holds this text browser's overwrite mode. bool readOnly This property holds whether the contents are read only. QString source This property holds the name of the displayed document. This is a QString::null if no document is displayed or if the source is unknown. Setting this property uses the mimeSourceFactory() to lookup the named document. It also checks for optional anchors and scrolls the document accordingly. If the first tag in the document is <qt type=detail>, the document is displayed as a popup rather than as new document in the browser window itself. Otherwise, the document is displayed normally in the text browser with the text set to the contents of the named document with setText(). If you are using the filesystem access capabilities of the mime source factory, you must ensure that the factory knows about the encoding of specified files; otherwise no data will be available. The default factory handles a couple of common file extensions such as *.html and *.txt with reasonable defaults. See QMimeSourceFactory::data() for details. Set this property's value with setSource() and get this property's value with source(). int undoDepth This property holds this text browser's undo depth. bool undoRedoEnabled This property holds whether undo and redo are enabled. SEE ALSO
http://doc.trolltech.com/qtextbrowser.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qtextbrowser.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QTextBrowser(3qt)
All times are GMT -4. The time now is 02:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy