Plugin Directory

Changeset 1196011


Ignore:
Timestamp:
07/10/2015 04:21:19 AM (11 years ago)
Author:
C. E.
Message:

First version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mathematica-toolbox/trunk/README.txt

    r1195993 r1196011  
    1818
    1919* Uses the same highlighting script that is used on Mathematica.StackExchange.com and on Wolfram Community.
    20 * Preserves indentation and prevents WordPress from inserting `<br>` and `<p>` into code.
    21 * Replaces Wolfram Language codes such as `\[Alpha]`, `\[Gamma]` etc. with their corresponding characters.
     20* Preserves code indentation and prevents WordPress from inserting `<br>` and `<p>` into code.
     21* Replaces Wolfram Language character codes such as `\[Alpha]`, `\[Gamma]` etc. with their corresponding characters.
    2222
    2323The highlighting feature can be triggered in two ways. In the editor `[wlcode]Wolfram Language code here[/wlcode]` can be used to place a code block directly into the text, however it is often desirable to put the code elsewhere and refer to it instead of putting it into the text itself. This is achieved by the shortcode `[wlcode field="name"]` where `name` refers to a custom post field that holds the code that should be inserted at that point. You may have to go to "screen options" at the top of the editor page to enable custom post fields before you can see the custom post field form.
     
    3030* Display a link to the documentation of a Wolfram Language function.
    3131
    32 There exists [an official plugin](https://wordpress.org/plugins/wolfram-cdf-plugin/) from Wolfram Research to embed CDFs. However, that plugin [does not work](http://mathematica.stackexchange.com/q/66311/731) since WordPress 4.0.1. The shortcode in this plugin takes exactly the same arguments, so you can read the instructions on the old plugin's page to understand how to use this feature. There is also a button beneath the editor that will insert a template that you can simply fill out. You can upload the CDF and its backup image (which you get if you use the CDF export wizard) via the media uploader. Remember to take note of the dimension that the export wizard tells you that the CDF has, because you will need it later.
     32The [official plugin](https://wordpress.org/plugins/wolfram-cdf-plugin/) from Wolfram Research that embeds CDFs [does not work](http://mathematica.stackexchange.com/q/66311/731) since WordPress 4.0.1. The shortcode in this plugin takes exactly the same arguments, so the instructions for that plugin are still valid. There is a button beneath the text editor in the post admin area that inserts a template that is straightforward to fill out. You can upload the CDF and its backup image, which you get if you use the CDF export wizard in Mathematica, via the media uploader. Remember to take note of the dimension that the export wizard tells you that the CDF has, because you will need it later.
    3333
    34 When you create an "instant API" in the Wolfram Cloud using `CloudDeploy` and `APIFunction` you will get back a URL. `[WolframCloudAPI id=""]` accepts the ID part of that URL as a parameter and will output the API's return value. Any other parameters will be passed on to the API. By default `[WolframCloudAPI]` assumes that the return value of the API is an image. If it is data you should add `image="false"` as a parameter.
     34When you create an "instant API" in the Wolfram Cloud using `CloudDeploy` and `APIFunction` Mathematica gives you a URL. `[WolframCloudAPI id=""]` accepts the ID part of that URL as a parameter and will output the API's return value. Any other parameters will be passed on to the API. By default `[WolframCloudAPI]` assumes that the return value of the API is an image. If it is data you should add `image="false"` as a parameter.
    3535
    36 `[wldoc]function[/wldoc]` generates a link to the online documentation page of `function`.
     36The shortcode `[wldoc]function[/wldoc]` generates a link to the online documentation page of `function`.
    3737
    3838**Retrieve posts from Mathematica.StackExchange.com**
     
    5353**Credits**
    5454
    55 * The part of the highlighter code that is specific to Wolfram Language is written by Patrick Scheibe and is available on his [Github page](https://github.com/halirutan/Mathematica-Source-Highlighting). He also wrote a browser [userscript](http://meta.mathematica.stackexchange.com/questions/1043/additional-useful-buttons-for-our-m-se-editor/) which extends the editor on Mathematica.StackExchange with the capaibility to generate links to the online Mathematica documentation, and the ability to replace glyph codes such as `\[Alpha]` with their corresponding characters. That script was an inspiration to the corresponding shortcodes provided by this plugin.
     55* The part of the highlighter code that is specific to Wolfram Language is written by Patrick Scheibe and is available on his . which extends the editor on Mathematica.StackExchange with the capaibility to generate links to the online Mathematica documentation, and the ability to replace glyph codes such as `\[Alpha]` with their corresponding characters. That script was an inspiration to the corresponding shortcodes provided by this plugin.
    5656
    5757* The highlighter script is Google Code Prettify.
     58
     59* [Patrick Scheibe](https://github.com/halirutan/Mathematica-Source-Highlighting) wrote the Google Code Prettify extension for Mathematica. He also wrote [this](http://meta.mathematica.stackexchange.com/questions/1043/additional-useful-buttons-for-our-m-se-editor/) browser extension with capablities that inspired this plugin, documentation links and Mathematica glyph codes to glyphs conversion.
    5860
    5961* The CDF embedding Javascript script was written by Wolfram Research.
     
    8688
    87891. CDFs can be included in WordPress posts, as well as data and images from Wolfram Cloud APIs.
    88 2. There are two different ways of including highlighted code blocks, but they produce the same result. Glyphs such as `\[Alpha]` get replaced with their corresponding character.
    89 3. Handy shortcodes can render usernames with links and links to the online documentation.
     902. There are two different ways to include highlighted code blocks, but they produce the same result. Character codes such as `\[Alpha]` get replaced automatically with their corresponding characters.
     913. Handy shortcodes can render usernames and links to the online documentation.
    90924. Shortcodes that interface with the Stackexchange API can retrieve information about a user. `[mma_se_profile_box user_id="731"]` creates the profile box seen in the image.
    91935. Answers specified by IDs, retrieved from the Stackexchange API.
    92 6. The top metabox is the "toolbox" after which the plugin got its name. A click on one of those buttons inserts the corresponding shortcode into the editor. Below the toolbox there is an example of code in custom post fields, which can be included in the post using `[wlcode field="example"]` and `[wlcode field="glyphs"]` respectively.
     946. The top metabox is the "toolbox" which the plugin is named after. A click on one of those buttons inserts the corresponding shortcode into the editor. Below the toolbox there is an example of code in custom post fields, which can be included in the post using `[wlcode field="example"]` and `[wlcode field="glyphs"]` respectively.
    9395
    9496== Changelog ==
    9597
     98The current version is version 1.0.0.
     99
    96100== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.