Better Code Editing WordPress plugin
CSS PHP JavaScript Shell
Latest commit 17485a1 Aug 31, 2017 @westonruter westonruter committed on GitHub Merge pull request #74 from WordPress/fix/install-from-source
Add admin notice to instruct npm install when plugin installed from source
Permalink
Failed to load latest commit information.
assets Fixing svg icon name and adding a png fallback Aug 23, 2017
bin Add recognition for remaining addons and modes Aug 29, 2017
dev-lib @ 8473c07 Add dev-lib for automated code checking Aug 6, 2017
wp-admin Extract JS from file editor PHP into theme-plugin-editor script Aug 30, 2017
wp-includes Clarify context for keyboard usage Aug 30, 2017
.dev-lib Add note about updating plugin zip and installing pre-commit hook Aug 14, 2017
.editorconfig Add dev-lib for automated code checking Aug 6, 2017
.eslintrc Add dev-lib for automated code checking Aug 6, 2017
.gitattributes 🍭 Added .gitattributes & .gitignore files Jun 6, 2017
.gitignore Add kses rule to HTMLHint Aug 26, 2017
.gitmodules Remove CodeMirror as git-submodule Aug 13, 2017
.jscsrc Add dev-lib for automated code checking Aug 6, 2017
.jshintignore Add dev-lib for automated code checking Aug 6, 2017
.jshintrc Add dev-lib for automated code checking Aug 6, 2017
.svnignore Prevent unwanted codemirror assets from being copied into wp-includes… Aug 29, 2017
.travis.yml Add dev-lib for automated code checking Aug 6, 2017
better-code-editing.php Add admin notice to instruct npm install when plugin installed from s… Aug 31, 2017
contributing.md Bump 0.5.0 Aug 30, 2017
package-lock.json Bump 0.5.0 Aug 30, 2017
package.json Bump 0.5.0 Aug 30, 2017
phpcs.xml Refactor plugin class into include files to facilitate core patch cre… Aug 27, 2017
readme.md Add admin notice to instruct npm install when plugin installed from s… Aug 31, 2017
readme.txt Add admin notice to instruct npm install when plugin installed from s… Aug 31, 2017

readme.md

Better Code Editing

Adding CodeMirror functionality to the Plugin and Theme file editors, as well as the Customizer Custom CSS box and Custom HTML widget.

Contributors: georgestephanis, westonruter, obenland, melchoyce, wordpressdotorg
Tags: codemirror, syntax-highlighter, linting
Requires at least: 4.7
Tested up to: 4.9-alpha
Stable tag: trunk (master)

Build Status

Description

This project is adding CodeMirror functionality to the Plugin and Theme file editors, as well as the Customizer Custom CSS box and the Custom HTML widget.

This is currently a Work In Progress playground for experimenting with bringing syntax highlighting to WordPress Core.

We're working around discussion on a Core ticket, #12423

Any questions, reach out to #core-customize on WordPress.org Slack or better open an issue on GitHub! See contributing.

Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there.

Changelog

0.5.0 - 2017-08-30

  • Prevent saving when lint errors present. See #69. Fixes #69.
  • Remove unused assets; register likely-used assets; allow recognized file types to be edited; allow passing type when getting settings in addition to file. See #66. Fixes #4.
  • Add recognition for JSON mode.
  • Align styling matchbracket with matchtag. See #63. Fixes #56.
  • Redesign warning/error messages. See #62. Fixes #44, #45.
  • Improve help text in widgets admin screen and Additional CSS in Customizer. See #65. Fixes #36.
  • Add wp_enqueue_code_editor action. See #68.
  • See full commit log and diff: 0.4.0...0.5.0

0.4.0 - 2017-08-28

  • Enable addon many goodies to improve UX and reduce accidental errors. See #52.
  • Add autocomplete hinting. See #51 and #50.
  • Improve mixed-mode autocomplete hints, including PHP. See #58.
  • Configure HTMLHint including KSES rule. See #47.
  • Configure JSHint with same rules as core. See #46.
  • Limit CSSLint rules. See #38 and #26.
  • Add tab trap escaping for CodeMirror in Custom HTML widget and theme/plugin editors. See #43 and #37.
  • Rename codemirror-wp to better-code-editing. See #42.
  • Add plugin icon. See #40.
  • Fix errors on small screens. See #39 and #11.
  • Refactor plugin class into include files to facilitate core patch creation. See #54.
  • Add admin notice when plugin is obsolete. See #57.
  • Upgrade CodeMirror to 5.29.0.
  • See full commit log and diff: 0.3.0...0.4.0

0.3.0 - 2017-08-18

  • Enable line-wrapping and constrain width for file editor to match textarea. See #33, #5, #32.
  • Improve accessibility of CodeMirror in Customizer's Additional CSS, including escape method from Tab trap. See #34 and #29.
  • Improve file organization to prepare for core merge.
  • See full commit log and diff: 0.2.0...0.3.0

0.2.0 - 2017-08-16

  • Add user setting for disabling Syntax Highlighting. See #31.
  • Improve release builds.
  • See full commit log and diff: 0.1.0...0.2.0

0.1.0 - 2017-08-14

Initial release.