Ticket #113 (closed enhancement: fixed)

Opened 21 months ago

Last modified 15 months ago

Syntax color highlighting

Reported by: michiel Owned by:
Priority: normal Milestone: MvBlog 3.0
Component: plugin Version:
Severity: Keywords:
Cc:

Description

Requested by Ferry Boender.

Perhaps this is already possible in MvBlog, but one feature needed by a lot of the more technical blogs is source code syntax color highlighting for various programming languages.

Change History

Changed 21 months ago by michiel

  • status changed from new to assigned

It's not possible yet. PEAR package: http://pear.php.net/package/Text_Highlighter or look at GESHI (see also mvpastebin project)

Changed 21 months ago by michiel

  • owner michiel deleted
  • status changed from assigned to new
  • version 2.1 deleted
  • milestone changed from MvBlog 2.1 to MvBlog 3.0

Changed 21 months ago by fboender

  • component changed from global to plugin

This should be handled by a plugin probably. This is a personal show-stopper for me. I can't have a blog without syntax color highlighting. But I'm leaving the milestone at 3.0 anyway. If I find the time to implement this sooner as a plugin, I will.

Changed 21 months ago by fboender

Michiel, why isn't this possible yet? I fail to forsee any real problems implementing this. Basically, it's a search and replace plugin with a hook to text_output. Authors could do something like:

[code:php
<?php
echo 'hello!';
?>
:code]

Or something.

Changed 21 months ago by michiel

It is possible to implement.

It's not possible to syntax highlight posts right now ;-)

Changed 15 months ago by michiel

  • status changed from new to closed
  • resolution set to fixed

(In [610]) allow syntax highlighting in posts. See COLOR_HIGHLIGHT.txt in the root to see how it's done.

Closes #113

Note: See TracTickets for help on using tickets.