Last modified: 2014-09-22 11:06:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11627 - Add syntax highlighting to Edit box
Add syntax highlighting to Edit box
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
1.22.0
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://sourceforge.net/projects/codep...
:
: 11886 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-10 20:28 UTC by Jonathan Kovaciny
Modified: 2014-09-22 11:06 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jonathan Kovaciny 2007-10-10 20:28:00 UTC
The CodePress project (codepress.org) has an excellent <textarea>-style input box which automatically highlights syntax while it is being edited. It currently has support for PHP, JavaScript, Java, Perl, SQL, HTML, and CSS. I would love to see a cooperative project to add support for MediaWiki syntax, so that we could use the CodePress edit box instead of the simple <textarea> currently in use by MediaWiki. This would make learning MediaWiki syntax a great deal easier on new editors and make editing a lot easier for experienced editors.
Comment 1 Brion Vibber 2007-12-05 20:21:15 UTC
*** Bug 11886 has been marked as a duplicate of this bug. ***
Comment 2 Eduard Braun 2013-04-25 21:54:28 UTC
This actually is a great idea!

In the end the MediaWiki syntax is some kind of source code after all (even if it's syntax is really easy) and syntax higlighting is always a huge help for reading through source code of all kinds.

If the built-in editor would contain some basic syntax highlighting this would help new editor to learn wiki syntax and made editing for experienced users more comfortable.

I already found a JavaScript with such functionality (https://www.mediawiki.org/wiki/User:Remember_the_dot/Syntax_highlighter) and I don't see any reason why something like this shouldn't be included in the MediaWiki software (and on all Wikimedia projects) by default.
Comment 3 Diederik van Liere 2013-11-19 03:59:00 UTC
What's the status of this?
Comment 4 Pavel (pastakhov) 2014-09-22 11:06:09 UTC
I am developing the CodeMirror extension [1] that highlights the wiki markup in <textarea>. It is not ready for real usage yet, but you can already see how it work [2] and help me to make it more usable.

Also I'm going to implement a function described in bug 13302.

Somehow these topics are avoided for a long time therefore I doubt that there is any way to integrate this solution into mediawiki software.

In any case, I'm going to continue working on this extension, and if there is someone interested in this solution, let me know.

[1] https://www.mediawiki.org/wiki/Extension:CodeMirror
[2] http://test.foxway.org/w/index.php5?title=Sandbox:CodeMirror&action=edit

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links