Eclipse Wikipedia Editor/Working with the Editor

<<Back

Contents


Working with the Editor

In the editor you can use the Ctrl+SPACE keys to insert the predefined templates:

Save an updated Wikipedia article

If you save a Wikipedia text file in the editor, a background builder creates or updates a corresponding *.html file in the /wikibook/wpbin folder and refreshs the text in the HTML browser preview.

The Editor Context Menu

HTTP Query
In the editor's context menu you can select a word and use the menu HTTP Query to run a search machine like Google.com, Koders.com or dict.leo.org.

Other HTTP Queries can be configured in the menu Window->Preferences in the node Wikipedia Editor Configurations.

Clipboard to Wikipedia
In the editor's context menu select the menu Clipboard to Wikipedia to insert a text from the clipboard.

The following conversions are performed through the submenus:

  • From HTML: HTML source code stored in the clipboard will be converted to Wikipedia text
  • From Java: Java source code stored in the clipboard will be converted to Wikipedia text
  • From PHP: PHP source code stored in the clipboard will be converted to Wikipedia text
  • From C#: C# source code stored in the clipboard will be converted to Wikipedia text
  • From JavaScript: JavaScript source code stored in the clipboard will be converted to Wikipedia text
  • From ABAP: ABAP source code stored in the clipboard will be converted to Wikipedia text

If your Wikipedia installation supports the Geshi extension you can alternatively sourround code snippets for syntax highlighting with tags like: <java>...</java>, <php>...</php>, <javascript>...</javascript>, <xml>...</xml>, <abap>...</abap>

Configuring a MySQL database for link suggestions

If you setuped a local Wikipedia MySLQ database you can configure a JDBC access through the menu Window->Preferences and selecting the node Wikipedia Editor Configurations. Press the Add... button and configure the access similar to the following example:
Image:wikipedia mysql.png

(the example comes from a XAMPP installation - root is the default user and you don't need a password)

Be sure that you started your MySQL database.

Now open a Wikipedia editor and type at least 3 characters of a wikipedia link, you like to insert and press the shortcut Ctrl+SPACE for the Content Assist. Example: Wik<Ctrl+SPACE>

In the opening window a list of the titles from your MySQL database should appear surrounded with the typical wiki markup

[[Wik....]]
[[Wik....]]
...

Links

Using the Wikipedia articles for PHP or Java documentation

In a PHP or Java comment you can create a link to a Wikipedia text file. With a right mouse click on the link in the editor and selecting menu Open Wiki Link the corresponding Wikpedia article file should be opened: In the following example you can navigate to [[Programming:PHP|PHP]]

The Open Wiki Link action opens the corresponding file /wikibook/wpsrc/Programming/PHP.wp

Note: the path of the file can be set in Window->Preferences... in the field: Projects associated Wikipedia texts path, for projects which are created as Wikipedia Project, you can set this path in the projects Properties context menĂ¼ in the Package Explorer view.