Mivhak Syntax Highlighter

説明

Have you been looking for a syntax highlighter that is safe to use on both the visual and the HTML WordPress editor? What
about a tool that highlights your syntax While writing your code, and also checks for syntax errors?

Well, look no further. Mivhak is a lightweight syntax highlighter for WordPress, based on a slightly modified version of the great Ace Code Editor.
Mivhak comes with a simple settings panel that allows the user to setup basic plugin behavior and appearance.

Additionally, code can be easily inserted to both the HTML and the visual editor using a TinyMCE popup the features live syntax highlighting and error checking for 100+ languages.

機能

  • Lightweight – minified CSS and JS, language scripts and themes are loaded on request
  • Supports 130+ different programming languages
  • 36 different skins
  • Visual + HTML editor code insertion buttons
  • Backend code editor with live syntax highlighting and error checking
  • Options to add caption text, change starting line, highlight single/multiple lines, and much more!
  • Easy-to-use control panel
  • Visual editor placeholders with floating control bar (see screenshots)
  • Automatic code highlighting for <pre>, <code> and/or <xhr>
  • Works with Markdown
  • Inline and block code widgets

Useful Links

Available Translations

  • 英語
  • ‎ヘブライ語
  • ドイツ語
  • Danish

スクリーンショット

  • Code snippet before Mivhak
  • Code snippet after Mivhak
  • General settings section under Mivhak options page
  • Skin selector under Mivhak options page
  • Code can be easily edited or removed in the visual editor
  • The code insertion/edition popup window

インストール

  1. Download and activate the plugin.
  2. Use the control panel to choose a skin.
  3. Specify which tags you would like Mivhak to prettify (CODE, PRE, XHR).

FAQ

Installation Instructions
  1. Download and activate the plugin.
  2. Use the control panel to choose a skin.
  3. Specify which tags you would like Mivhak to prettify (CODE, PRE, XHR).

評価

best

I don't think that there is something better.

Do the job !

Perfect for me. Enough to share quick and short examples of css and html with my students. Cleau, simple and easy to use.

Not good

Why it's keep adding <span id="mce_marker" data-mce-type="bookmark" data-mce-fragment="1">​</span> in the code
25件のレビューをすべて表示

貢献者と開発者

Mivhak Syntax Highlighter はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Mivhak Syntax Highlighter” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.3.9

  • (FIX) Fixed an issue related to the Amarkal framework.

1.3.8

  • (FIX) Fixed an issue that was causing PHP 7.1 to throw a lexical error.

1.3.7

  • (FIX) “mivhak_settings is not defined” error fixed.

1.3.6

  • (FIX) Moved render blocking scripts to footer
  • (NEW) Added 5 new languages

1.3.5

  • (NEW) Added a Danish translation (Thanks Henrik Gregersen!)
  • (FIX) Made TinyMCE button public facing as well

1.3.4

  • (NEW) Added 2 new translations: Hebrew & German
  • (NEW) Added a .pot file for internationalization
  • (UPDATE) Changed internal file structure
  • (UPDATE) Updated Ace Editor to the latest version (1.2.3)

1.3.3

  • (NEW) Added support for Jetpack Markdown code parsing
  • (FIX) Visual Editor nextSibling issue

1.3.2

  • (NEW) The code font size can now be set in Mivhak->Appearance
  • (NEW) Users can now highlight single and multiple lines
  • (FIX) Safari hidden code issue

1.3.1

  • (NEW) Users can now set the initial visibility of a code block. If hidden, a “show code” button will be visible to control the visibility of the code block
  • (FIX) Only showing caption when necessary
  • (FIX) Editor popup editor updates to reflect changes when “starting line” is changed

1.3.0

  • (UPDATE) Bumped up ace version to 1.2.2
  • (NEW) Option to add caption text
  • (NEW) Option to set the starting line
  • (NEW) Added new languages: Dockerfile, HTML Elixir, Maze, Praat, SQLServer, Swift, Swig.
  • (FIX) Formatting issues when switching between editors
  • (FIX) Issue that was breaking embedded media
  • (FIX) WordPress Editor floating bar issue
  • (FIX) <p> tag encoding issue

1.2.6

  • (FIX) Move the cursor out of the inserted element after inserting
  • (FIX) Issue that was breaking the editing functionality in the visual editor
  • Tested under WordPress 4.2.3

1.2.5

  • (UPDATE) Bumped up ace version to 1.1.9
  • (NEW) Added 12 new languages: ABC, AppleScript, Eiffel, Elixir, Elm, G-Code, gitignore, io, Lean, Mask, MIPS Assembler and Vala.
  • (FIX) Removed 2 unsupported languages: HTML Completions, MUSHCode High Rules.
  • (FIX) Inline code element issue.

1.2.4

  • (UPDATE) Amarkal Framework v0.3.6
  • (NEW) Added <pre> quicktag to the HTML editor
  • (FIX) Improved the way HTML formatting is preserved when switching between editors
  • Tested under WordPress 4.2.1

1.2.3

  • (FIX) Fixed some notices that were showing when WP_DEBUG was set to true
  • (FIX) Uninstalling the plugin now removes any traces from the database
  • (NEW) Add an option the write custom CSS (under Mivhak->appearance)

1.2.2

  • (FIX) PHP Strict Standards issue

1.2.1

  • (NEW) Selected text is used as input for the popup code editor
  • (NEW) Option to select a default language when no language has been detected
  • (NEW) Programming languages pretty names (As opposed to all uppercase names as it has been until now)
  • (FIX) Extra lines/spaces will be trimmed
  • (FIX) Visual Editor issue that was preventing code blocks without the class attribute from being edited
  • (FIX) Non-breaking space issue that was treated as an invalid character
  • (FIX) A bug that was causing line breaks to be added when switching between the visual and the HTML editors
  • (FIX) CSS issues

1.2.0

  • (UPDATE) Amarkal Framework v0.3.4
  • (UPDATE) Completed migration to Ace Editor
  • (UPDATE) Slightly modified visual appearance

1.1.1

  • (UPDATE) Amarkal Framework v0.3.3
  • (FIX) Fixed an issue that was causing line breaks to be removed when switching between visual and HTML editor.

1.1.0

  • (NEW) Added support for bbPress
  • (NEW) Visual + HTML editor buttons with code writing tools
  • (NEW) Static/dynamic highlighting is now implemented using the great Ace Code Editor
  • (NEW) Visual editor placeholders with floating control bar
  • (UPDATE) Improved CSS

1.0.7

  • (FIX) Minor CSS fixes (tested on multiple themes)
  • (UPDATE) Amarkal Framework

1.0.6

  • (FIX) Visibility issue in FireFox (thanks zeaks!)
  • (FIX) Issue with code snippets in comments
  • (UPDATE) Code blocks are now print friendly
  • (UPDATE) Brand new admin page – see screenshots

1.0.5

  • (UPDATE) Amarkal framework update

1.0.4

  • (FIX) Prevent line numbers from being copied

1.0.3

  • (FIX) inline code segments issue
  • (FIX) no line-numbers issue
  • (UPDATE) Improved CSS styling
  • (NEW) Choose whether to show/hide meta header by line count

1.0.2

  • (FIX) script tag encoding issue
  • (UPDATE) Amarkal framework
  • (NEW) Meta header shows language name

1.0.1

  • (FIX) HTML encoding issue

1.0.0

  • プラグインをリリース