« Previous | Next » 

Revision 9c23642b

ID9c23642bbe731981df46ddfee8a0a5e97284e12a
Parent d499ed2a
Child 94f5cb31

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