Homec4science

Add PHP scrub for Pygmentize

Authored by vrana <jakubv@fb.com> on Jun 21 2012, 00:13.

Description

Add PHP scrub for Pygmentize

Summary:
We don't add <?php in front of PHP code before sending it to Pygmentize.
The result is that PHP code is not highlighted if xhpast is not available or if there's an error in the code (in which case we fallback to Pygmentize).

Test Plan: Disabled xhpast, highlighted PHP.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D2813

Details

Committed
vrana <jakubv@fb.com>Jun 21 2012, 03:16
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU30fa8cfb85f6: Allow enabling ANSI
Branches
Unknown
Tags
Unknown

Event Timeline

vrana <jakubv@fb.com> committed rPHU8f79889d9134: Add PHP scrub for Pygmentize (authored by vrana <jakubv@fb.com>).Jun 21 2012, 03:16