Paste As Code
The paste as code plugin applies source code highlighting to code when pasting into the editor.
Installation
Installing the paste as code plug-in simply requires loading the plugin:
elj.addPlugin("pasteAsCode.xml");
Usage
Select the "Paste As Code…" menu item from the "Plugins" menu. A dialog will be displayed allowing you to specify what type of code is being pasted. When OK is clicked, the current clipboard content is marked up with class tags that allow formatting to be provided.
A sample stylesheet (formatting.css) is provided and should be included in the page template.
Dependencies
This plugin uses the following libraries which are included in the distribution:
Download
Get the Paste as Code plugin.
Ephox Technical Support does not cover LiveWorks! code, integrations or plug-ins.
Please direct any support requests or general enquiries about any LiveWorks! code, integrations or plug-ins to the LiveWorks! mailing list. This code is released as-is with no support and no warranty and is installed at your own risk. We recommend thorough testing of any LiveWorks! project before deploying to any production system.