Posts labeled "php"

Ongoing Projects

So in all 5 minutes of my free time I've managed to squeeze in some side projects. One I've "highlighted" (pun intended) here before: lzHilight. The other is a mini-project I through together to add cterm support to Vim colorschemes without the need for the somewhat bulky GuiColorScheme plug… more »

Big Highlighter Update 0.8.2

In the spirit of PHP I figured I would make a major update in a minor version. So here's version 0.8.2 and here's the changelog for the beast. (This will probably be the last of the major changes since from here on out all development will probably be focused on the tokenizers or creating so… more »

Less Broken = Win, Highlighter V0.8

Here 'tis, version 0.8. Most of the major changes dealt with fixing the HTML tokenizer which now works *almost* flawlessly. Here are the updated README and CHANGELOG from v0.8. Download: CLI Highlighter v0.8 CHANGELOG 0.8 * Changed the way custom handlers work in syntax fi… more »

Invading Automata (Highlighter V0.7)

Another quick update for the syntax highlighter. I've rewritten a bit of the main program for extensibility and I've bundled an HTML tokenizer (unfortunately this is a finite state automata, its almost impossible to go completely stateless) and syntax files. Coinciding with some of the new c… more »

Stateless Syntax Highlighter Part 2

The highlighter has been completely overhauled to be extensible using external tokenizers and color files. PHP CLI Highlighter v0.5 Here is the new README from the file: Command line syntax highlighter ------------------------------- Getting Started: Requirements: Requires P… more »

Stateless Syntax Highlighter

About a year ago I got the dumb idea of creating a syntax highlighter that uses ECMA—48 SGR sequences to enable syntax highlighting on the command line. I searched for a while to see if I could cure a little NIH Syndrome and didn't find anything, so I ventured off on my own and th… more »

Peek At Cpp0x And PHP OOP

So I was messing around with the STL the other day, mainly to compare OOP in PHP and in C++ and I came up with two simple comparisons. PHP: <?php class Person implements ArrayAccess { public $name; public $properties = array(); public function __construct($na… more »

PHP: The Good* Parts Ep 1

Many of the things PHP gets berated for are simply misunderstood features of the language. The cause of this misunderstanding is undoubtedly the "fault" of the languages low barrier to entry. If I may steal a quote from Douglas Crockford, people are writing before learning the language. S… more »

Literally Bass Ackwards

This is less a blog post and more a personal attack on the original author of the bit of code in Symfony that reads in the filters.yml file. Firstly, you're a god damned idiot, secondly, you're and even bigger idiot. Here's a very short backstory to this attack, in Symfony to enable a filte… more »

Stand Back

So I happened to notice that links in posts on the Alter Aeon boards weren't being parsed correctly; lots of false positives and correct urls weren't being linked. So I did what every illogical programmer would do. So I racked my brain for a few minutes and using the awesome RegExr air a… more »