Sunshine

Text Formatter Script
User Page   Awards   Subpages   Sandbox   Tools Lab   Guestbook
User script
textFormatter
See the new buttons?
DescriptionAdds new buttons in edit menu to format text easily
AuthorVarunFEB2003
StatusStable
Browsers SupportedAll Leading Browsers (IE 8+ reqd.)
Skins SupportedOnly Vector
SourceUser:VarunFEB2003/textFormatter.js

textFormatter is a very high level User Script designed to add new edit buttons in the edit menu of the Vector Skin. These buttons are focused on text formatting options! The buttons include a button that Underlines, a button that left aligns your text, a button that right aligns your text, one that justifies it, another that center aligns it and one that allows you to change the text's color! See the installation guide below. The text works only with the Vector Skin. These new buttons are visible in the source editing mode, in the editing menu of the Vector Skin. These buttons on clicking insert the syntax in the window around the text selected! See below for details.

Support

This script is compatible will all leading browsers (Internet Explorer 8+ required) but only the Vector Skin

Installation

To install the script add the code given below to your common.js page. Click the link to do so. After adding the code to your common.js page bypass your cache by pressing Ctrl+F5 Your script is ready for use!
You will now be able to see new buttons in the source editing mode of the Vector Skin. Click them one by one and you will be able to insert syntax in your window. If you want to wrap some text in one of the tags inserted by the buttons you can select the text and then click the button! If you do not select any text and click the button then syntax will get inserted with sample text!

1. The code for installation on English Wikipedia is:
importScript('User:VarunFEB2003/textFormatter.js'); // Backlink:[[User:VarunFEB2003/textFormatter]]
2. The code for installation on any other Wikimedia's Wiki is:
importScriptURI('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:VarunFEB2003/textFormatter.js');

Buttons inserted!

Button Name Code inserted
Underline <u> Replace this with your text <u>
Left Align <div style="text-align:left;"> Replace this with your text </div>
Center Align <div style="text-align:center;"> Replace this with your text </div>
Justified <div style="text-align:justify;"> Replace this with your text </div>
Right Align <div style="text-align:right;"> Replace this with your text </div>
Font Color <span style="color:Red"> Your colored text! Change color name with yours Defaults to red! </span>


Not functioning?

There can be 2 reasons if the script is not functioning:

  1. You are using some other user script that interferes with its work and doesn't allow it to function!
  2. You have not setup the code in your common.js properly, please seek personal help from me via my scripts talk page.