« Previous | Next » 

Revision 7c796f17

ID7c796f179d3894a8e5458e6c22750490af43e7bc
Parent 00f6d92e
Child 6bbd75ff

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