Giter Site home page Giter Site logo

wpplugins / visual-code-editor Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2 KB

This is a mirror of the svn repo: https://plugins.svn.wordpress.org/visual-code-editor/, the master is always the latest release.

Home Page: http://wpplugins.it

PHP 100.00%

visual-code-editor's Introduction

=== Plugin Name ===
Contributors: Freelance Web Developer
Donate link: 
Tags: TinyMCE, visual editor, syntax highlighting, code snippets
Requires at least: 2.5
Tested up to: 2.9.2
Stable tag: 1.2.5

Visual Code Editor modifies WordPress's behavior so that syntax (programming code snippets) format is preserved when using the visual editor. It will work with any syntax highlighter that accepts encoded/escaped syntax.

== Description ==

Visual Code Editor modifies WordPress's behavior so that code (programming code snippets) format is preserved when using the visual editor. It will work with any syntax highlighter that accepts encoded/escaped syntax.

* Adds `<pre>` & `<code>` to block format menu
* Allows extra attributes for compatibility in some syntax highlighters (ie, `<pre lang="php" line='5'>`)
* Unescape WP's double escaping of &amp;
* Allows iFrames in the post
* Support for syntax highlighting in comments
* Removes extra  `<pre>` tags around SyntaxHighllighter Plus's [sourcecode] blocks


== Change History ==

* v1.2.5: Tested in WordPress 2.9.2 and with SyntaxHighlighter Evolved 2.3.8
* v1.2.4: Tested in WordPress 2.8.4
* v1.2.3: Tested in WordPress 2.7.1
* v1.2.2: Support for syntax highlighting in comments
* v1.2.1: Compatible with PHP4
* v1.2: Allows iFrames in the post
* v1.1: Removes extra `<pre>` tags around SyntaxHighllighter Plus's [sourcecode] blocks

== Installation ==

1. Download and decompress the zip.
2. Upload the `visual-code-editor` folder to your `/wp-content/plugins/` directory
3. Activate the plugin through the 'Plugins' menu in WordPress

== Frequently Asked Questions ==

None at this time.

== Usage ==

Assuming you are using the SyntaxHighlighter Plus or SyntaxHighlighter Evolved plugin...

1. In visual mode, create a [sourcecode language="xxx"][/sourcecode] block
2. Select the sourcecode block
3. Select Preformatted from TinyMCE's format menu
4. Paste your code in between the [sourcecode/] brackets

== Screenshots ==

1. Coupled with the SyntaxHighlighter Plus plugin, you get results like the above.
2. All you have to do is create a [sourcecode language="xxx"][/sourcecode] block, paste in your code, select the whole sourcecode block, then select Preformatted from Tiny's format menu. It should look like the above.

visual-code-editor's People

Contributors

wppluginsbot avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.