Unfortunately, some of the pages are now read-only, this because in the last few months some spammers decided to “contribute” to the wiki…
I'm trying to lock only the interested pages.

locked for spam
Only registered users can edit

Code Highlight

A couple of days ago I discovered CodePress, so I decided to try include it in DW in order to edit code directly in the wiki editor…ok, quite a stupid idea, but in that way I don't need anymore a text editor with syntax highlight and I can avoid spread code over USB sticks, the HD of my home-pc, the HD of my pc at work, some web page and so on… ^^;;

It's not completely finished and there are a couple of bugs, but it works (you can test it editing one of the pagess on that wiki (do you see the “Highlight code” button after the editor? Click on it! ;-))

Download

Old versions:

Changelog

  • 2009/02/21
    • Started

Todo

  • Move the button to the toolbar (inside a 'picker' I suppose, with the languages as options of the picker)
  • Allow textarea resize
  • Automatically identify code by final part of the page name (e.g. for page: :devel:page.php it sould automatically understand that it is php code and so on) and/or by <code> tag inside of the page.

Discussion

Please use the discussion page

Development

1) The only change between this and the distributed version is that I moved the starting procedure from the js file to to a button in the dokuwiki editor

Tools personali