github/linguist — Issue #130: `startinline` option for PHP highlighting
Author: leek
Created: 2012-02-27 02:46:12+00:00
State: open

I didn't see a way to pass options to each lexer from `languages.yml` but it would be great to have the `startinline` option in Pygments turned on for PHP. See [Lexars for web-related languages and markup](http://pygments.org/docs/lexers/#lexers-for-web-related-languages-and-markup) under **PhpLexer**:

> **startinline**
> If given and `True` the lexer starts highlighting with php code (i.e.: no starting ` The default is `False`.

Ideally, this *sample* snippet of PHP code from the Symfony2 project would be highlighted with **\`\`\`php** without having to include `
*
* @api
*/
class Client extends BaseClient
{
protected $kernel;

/**
* Constructor.
*
* @param HttpKernelInterface $kernel An HttpKernel instance
* @param array $server The server parameters (equivalent of $_SERVER)
* @param History $history A History instance to store the browser history
* @param CookieJar $cookieJar A CookieJar instance to store the cookies
*/
public function __construct(HttpKernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null)
{
$this->kernel = $kernel;

parent::__construct($server, $history, $cookieJar);

$this->followRedirects = false;
}
}