« Previous | Next » 

Revision a4fd5b13

IDa4fd5b135e5303854cfaddb2fb34718d0fc216ac
Parent 36e21378
Child 63733717

Added by Jacob Floyd over 6 years ago

[TASK] Make PHP highlighting work for snippets

This adds the "official" hack to turn on startinline for all php
codeblocks whether they're a snippet or a full file.

Sphinx and docutils don't support setting the startinline option for
pygments. That means that snippets of PHP code that don't have
"<?php ?>" don't get highlighted. The hack was documented here:
http://mbless.de/blog/2015/03/02/php-syntax-highlighting-in-sphinx.html
https://github.com/fabpot/sphinx-php

Change-Id: I4e0cd22ff15516931dc5c6b0bb81c3e7079a3965
Releases: master, 3.0, 2.3, 2.2, 2.1, 2.0, 1.1

  • added
  • modified
  • copied
  • renamed
  • deleted