#!/usr/bin/env php setTagline(pht('test syntax highlighters')); $args->setSynopsis(<<parseStandardArguments(); $args->parse( array( array( 'name' => 'language', 'param' => 'language', 'help' => pht('Choose the highlight language.'), ), )); $language = $args->getArg('language'); $corpus = file_get_contents('php://stdin'); echo id(new PhutilDefaultSyntaxHighlighterEngine()) ->setConfig('pygments.enabled', true) ->highlightSource($language, $corpus);