A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/asgaardc/luminous/system/core/Exceptions.php:170)

Filename: libraries/Session.php

Line Number: 671

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/asgaardc/luminous/system/core/Exceptions.php:170)

Filename: libraries/Session.php

Line Number: 671

Luminous PHP Syntax Highlighter -
Fork me on GitHub

This is all aggregated from my personal blog. You can read and comment directly at the source under the luminous/news category. RSS RSS

0.6.4 Stable Release

18 September 2011, 8:05 pm

0.6.4 has been released.

Highlights are:

  • A Django Scanner,
  • a new theme based on GitHub's syntax highlighting,
  • you can now use border-radius on the Luminous div element, and it should look okay,
  • a whole bunch of bug fixes in web language scanners, and some missing keywords added for Python

Everyone should definitely upgrade as the fixed bugs in the web languages were potentially fatal, although I'm not sure they were reachable.

Full changelog: http://luminous.asgaard.co.uk/assets/luminous/CHANGES.markdown

Download: http://luminous.asgaard.co.uk/index.php/download[...] Read more

0.6.3-1 Stable Release

28 August 2011, 9:37 pm

0.6.3-1 was quietly released a few weeks ago.

To document it: it's a minor release which fixes a single bug in the caching system's timeout. The bug caused cache elements to be removed by default after 9 days of inactivity, rather than the more sensible (and intended) 90.

A cache element's activity is measured by the most recent cache hit for the element.

It is possible to override the timeout by calling

1
luminous::set('cache-age', $your_new_timeout_in_seconds);

As usual, setting it to -1 or 0 will disable the timeout.[...] Read more

0.6.3 Stable Release

22 June 2011, 7:18 pm

Version 0.6.3 of your favourite syntax highlighter is released. Get your copy from the download page.

0.6.3 brings two new features: Highlighting support for Ada code, and the ability to store your highlight cache in a MySQL table. Support for other databases will hopefully come in future. For information on how to do this, check out the cache page of the user documentation.

As well as this, there are a few small general fixes and small fixes for Perl, PHP, Python, and Ruby highlighting.

Full Changelog

As ever, please report problems to the issue tracker on GitHub.

Further, coinciding with this release, the Doxygen API docs are now available online

[...] Read more

0.6.2 Stable Release

15 May 2011, 7:47 pm

0.6.2. is released. Get it from the download site.

0.6.2 sports three exciting new features: a command line interface, a full-page HTML formatter and language guessing. The full page HTML formatter can be accessed by setting the format option to 'html-full'. The language guessing you will find to be either scarily accurate or totally useless depending on what languages you use, but generally, if you're providing full or at least large source snippets of common languages it will be useful.

Be warned that internally the options API has been reworked and it now has some strict validation so you can't set any configuration settings to nonsensical values. If you try to set something nonsensical, it will throw an exception. Obviously, you should be doing a little integration testing before you upgrade any production machines anyway.

There are also a few language fixes for C, Diff, PHP, Ruby and SQL.

Full changelog

 

--

PS: the site is slow right now because the host is having YET M[...] Read more

0.6.1 Stable Release

29 April 2011, 5:33 pm

0.6.1 is released with some major fixes since 0.6.0.

Get it from the usual place (where we now have some actual packages, not just the github generated archives).

The biggest fixes are related to PCRE problems. On the older PHP/PCRE releases, everything is fine, but I upgraded my box to the Kubuntu 11.04 release yesterday (from 10.04 -- fresh install rather than update), and the version of PHP it ships with introduces some huge issues in PCRE (version string: PHP 5.3.5-1ubuntu7 with Suhosin-Patch (cli) built: Apr 17 2011 13:58:11 with PCRE Library Version => 8.12 2011-01-1). The problem is in the backtracking behaviour of PCRE, even straightforward regexes suddenly started hitting the backtracking limit on fairly short strings.

Anyway, despite the apparent unlikeliness of the PHP/PCRE projects pushing an update that breaks *a lot* of my regular expressions, and presumably a lot of other people's as well, I also reproduced this under PHP5.3.5 from Xampp (5.3.1 is fine though), so it looks like thi[...] Read more

0.6.0 Stable Release

16 April 2011, 2:37 pm

0.6.0 represents an almost total rewrite of Luminous. It's quickly grown from a clean new repository on github with a giant flashing "DON'T USE THIS!" warning, to having now reached the maturity of a stable release. We pretty much threw away all the highlighting related code of 0.5.7 and reimplemented the missing chunks from scratch. The result is that 0.6.0 uses lexical scanners to highlight source code, which is actually a much simpler and more flexible approach than trying to abstract everything into one big generic state machine algorithm.

Download from Github: [zip] [tar.gz]

The change of approach makes Luminous *a lot* more powerful: languages are more complete and the scanners 'understand' source code better and are therefore much more resilient to strange or not-so-strange language constructs. Previously we had situations that were categorised into "we can do that", "we can sort of do that", "we can't do that". We now have a lot more[...] Read more

 < 1 2