Acest modul nu a fost testat cu ultimele 3 versiuni importante ale WordPress. S-ar putea să nu mai fie întreținut sau susținut și ar putea avea probleme de compatibilitate când este folosit cu versiuni recente ale WordPress.

Visual Code Editor

Descriere

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 &
  • 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

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

Instalare

  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

Întrebări frecvente

None at this time.

Contributori și dezvoltatori

„Visual Code Editor” este un software open-source. La acest modul au contribuit următoarele persoane.

Contributori