MediaWiki  1.34.0
SyntaxHighlight.php File Reference

Go to the source code of this file.

Functions

static buildHeadItem ( $geshi)
 Backward-compatibility shim for extensions. More...
 
static getLexer ( $lang)
 Get the Pygments lexer name for a particular language. More...
 
static makeCacheKeyHash ( $code, $lexer, $options)
 Construct a cache key for the results of a Pygments invocation. More...
 
static onApiFormatHighlight (IContextSource $context, $text, $mime, $format)
 Hook to provide syntax highlighting for API pretty-printed output. More...
 
static onContentGetParserOutput (Content $content, Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output)
 Hook into Content::getParserOutput to provide syntax highlighting for script content. More...
 
static onParserFirstCallInit (Parser &$parser)
 Register parser hook. More...
 
static onResourceLoaderRegisterModules (&$resourceLoader)
 Conditionally register resource loader modules that depends on the VisualEditor MediaWiki extension. More...
 
static parseHighlightLines ( $lineSpec)
 Take an input specifying a list of lines to highlight, returning a raw list of matching line numbers. More...
 
static parserHook ( $text, $args, $parser)
 Parser hook. More...
 
static prepare ( $text, $lang)
 Backward-compatibility shim for extensions. More...
 
static validHighlightRange ( $start, $end)
 Validate a provided input range. More...
 

Variables

static array $mimeLexers
 Mapping of MIME-types to lexer names. More...
 
 $output = self::plainCodeWrap( $code, $inline )
 
return $status
 
class SyntaxHighlight startinline highlight highlight hl_lines start start linenostart start nowrap highlight l f html O
 
class SyntaxHighlight startinline highlight highlight hl_lines start start linenostart start nowrap highlight l f html syntaxhighlight error pygments invocation failure Failed to invoke Pygments
 
if( $inline) $status value = $output
 

Function Documentation

◆ buildHeadItem()

static buildHeadItem (   $geshi)
static

Backward-compatibility shim for extensions.

Deprecated:
since MW 1.25
Parameters
GeSHi$geshi
Returns
string

Definition at line 572 of file SyntaxHighlight.php.

References wfDeprecated().

◆ getLexer()

static getLexer (   $lang)
staticprivate

Get the Pygments lexer name for a particular language.

Parameters
string$langLanguage name.
Returns
string|null Lexer name, or null if no matching lexer.

Definition at line 342 of file SyntaxHighlight.php.

◆ makeCacheKeyHash()

static makeCacheKeyHash (   $code,
  $lexer,
  $options 
)
staticprivate

Construct a cache key for the results of a Pygments invocation.

Parameters
string$codeCode to be highlighted.
string$lexerLexer name.
array$optionsOptions array.
Returns
string Cache key.

Definition at line 358 of file SyntaxHighlight.php.

References FormatJson\ALL_OK, and FormatJson\encode().

◆ onApiFormatHighlight()

static onApiFormatHighlight ( IContextSource  $context,
  $text,
  $mime,
  $format 
)
static

Hook to provide syntax highlighting for API pretty-printed output.

Parameters
IContextSource$context
string$text
string$mime
string$format
Since
MW 1.24
Returns
bool

Definition at line 482 of file SyntaxHighlight.php.

References $context, $mimeLexers, $output, and $status.

◆ onContentGetParserOutput()

static onContentGetParserOutput ( Content  $content,
Title  $title,
  $revId,
ParserOptions  $options,
  $generateHtml,
ParserOutput $output 
)
static

Hook into Content::getParserOutput to provide syntax highlighting for script content.

Parameters
Content$content
Title$title
int$revId
ParserOptions$options
bool$generateHtml
ParserOutput&$output
Returns
bool
Since
MW 1.21

Definition at line 426 of file SyntaxHighlight.php.

References $content, $output, $status, $title, $wgParser, $wgTextModelsToParse, ContentHandler\getContentText(), and ExtensionRegistry\getInstance().

◆ onParserFirstCallInit()

static onParserFirstCallInit ( Parser &  $parser)
static

Register parser hook.

Parameters
Parser&$parser

Definition at line 378 of file SyntaxHighlight.php.

◆ onResourceLoaderRegisterModules()

static onResourceLoaderRegisterModules ( $resourceLoader)
static

Conditionally register resource loader modules that depends on the VisualEditor MediaWiki extension.

Parameters
ResourceLoader&$resourceLoader

Definition at line 514 of file SyntaxHighlight.php.

References $resourceLoader, and ExtensionRegistry\getInstance().

◆ parseHighlightLines()

static parseHighlightLines (   $lineSpec)
staticprotected

Take an input specifying a list of lines to highlight, returning a raw list of matching line numbers.

Input is comma-separated list of lines or line ranges.

Parameters
string$lineSpec
Returns
int[] Line numbers.

Definition at line 372 of file SyntaxHighlight.php.

References $lines.

◆ parserHook()

static parserHook (   $text,
  $args,
  $parser 
)
static

Parser hook.

Parameters
string$text
array$args
Parser$parser
Returns
string
Exceptions
MWException

Definition at line 393 of file SyntaxHighlight.php.

◆ prepare()

static prepare (   $text,
  $lang 
)
static

Backward-compatibility shim for extensions.

Deprecated:
since MW 1.25

Definition at line 561 of file SyntaxHighlight.php.

References $lang, and wfDeprecated().

Referenced by GuzzleHttpRequest\prepare().

◆ validHighlightRange()

static validHighlightRange (   $start,
  $end 
)
staticprotected

Validate a provided input range.

Parameters
int$start
int$end
Returns
bool

Definition at line 400 of file SyntaxHighlight.php.

Variable Documentation

◆ $mimeLexers

static array $mimeLexers
staticprivate
Initial value:
= [
'text/javascript' => 'javascript',
'application/json' => 'javascript',
'text/xml' => 'xml',
]

Mapping of MIME-types to lexer names.

Definition at line 330 of file SyntaxHighlight.php.

Referenced by onApiFormatHighlight().

◆ $output

$output = self::plainCodeWrap( $code, $inline )

Definition at line 335 of file SyntaxHighlight.php.

Referenced by Maintenance\activateProfiler(), DifferenceEngineSlotDiffRenderer\addModules(), ProtectionForm\buildForm(), WikiExporter\closeStream(), StringUtils\delimiterReplaceCallback(), MediaWiki\Storage\DerivedPageDataUpdater\doParserCacheUpdate(), LinkHolderArray\doVariants(), CodeEditorHooks\editPageShowEditFormInitial(), SpecialRenameuser\execute(), SpecialContributions\execute(), UpdateLexerList\execute(), SpecialExpandTemplates\execute(), CategoryTreePage\execute(), SpecialWatchlist\execute(), SpecialEditTags\execute(), CategoryChangesAsRdf\execute(), SpecialRevisionDelete\execute(), DumpCategoriesAsRdf\execute(), BlockLevelPass\execute(), ScribuntoContent\fillParserOutput(), GadgetDefinitionContent\fillParserOutput(), JsonContent\fillParserOutput(), UnknownContent\fillParserOutput(), TextContent\fillParserOutput(), WikitextContent\fillParserOutput(), ExecutableFinder\findExecutable(), WikiExporter\finishPageStreamOutput(), MediaWiki\Logger\Monolog\LineFormatter\format(), AutoloadGenerator\generatePHPAutoload(), CategoryMembershipChangeJob\getCategoriesAtRev(), MediaWiki\getChronProtStrategy(), TextContentHandler\getDataForSearchIndex(), ContentHandler\getDataForSearchIndex(), ChangesListBooleanFilter\getJsData(), ChangesListStringOptionsFilterGroup\getJsData(), ChangesListFilterGroup\getJsData(), ChangesListFilter\getJsData(), WebInstallerLanguage\getLanguageSelector(), RefreshLinksJob\getParserOutput(), RefreshLinksJob\getParserOutputFromCache(), EditPage\getPreviewLimitReport(), Revision\RenderedRevision\getRevisionParserOutput(), MediaWiki\Storage\DerivedPageDataUpdater\getSecondaryDataUpdates(), Revision\RenderedRevision\getSlotParserOutput(), ChangesListSpecialPage\getStructuredFilterJsData(), CategoryChangesAsRdf\handleAdds(), CategoryChangesAsRdf\handleDeletes(), CategoryChangesAsRdf\handleEdits(), CategoryChangesAsRdf\handleMoves(), PageDataRequestHandler\handleRequest(), CategoryChangesAsRdf\handleRestores(), DumpRenderer\handleRevision(), ScribuntoContent\highlight(), CryptHKDF\HKDFExpand(), PageDataRequestHandler\httpContentNegotiation(), StringUtils\hungryDelimiterReplace(), Profiler\logData(), Profiler\logDataPageOutputOnly(), MediaWiki\main(), SpecialExpandTemplates\makeOutput(), Maintenance\maybeHelp(), mccGetHelp(), onApiFormatHighlight(), onContentGetParserOutput(), InputBoxHooks\onMediaWikiPerformAction(), SpamBlacklistHooks\onParserOutputStashForEdit(), SpamBlacklistHooks\onUploadVerifyUpload(), ImagePage\openShowImage(), WikiExporter\openStream(), SpecialWatchlist\outputChangesList(), WikiExporter\outputLogStream(), WikiExporter\outputPageStreamBatch(), InfoAction\pageInfo(), MediaWiki\performAction(), MediaWiki\performRequest(), Wikimedia\Rdbms\DatabasePostgres\pg_array_parse(), MediaWiki\preOutputCommit(), MediaWiki\Storage\DerivedPageDataUpdater\prepareContent(), Revision\RenderedRevision\pruneRevisionSensitiveOutput(), SectionProfiler\remapCallTree(), ImageMap\render(), LinkHolderArray\replaceInternal(), LinkHolderArray\replaceInterwiki(), UserNotLoggedIn\report(), Scribunto_LuaStandaloneEngine\reportLimitData(), Scribunto_LuaSandboxEngine\reportLimitData(), ScribuntoHooks\reportLimitData(), RefreshLinksJob\runForTitle(), Revision\RenderedRevision\setRevisionParserOutput(), SpecialAllPages\showChunk(), SpecialGadgets\showExportForm(), UserrightsPage\showLogFragment(), SpecialGadgets\showMainForm(), SpecialPrefixindex\showPrefixChunk(), ScribuntoHooks\showReadOnlyFormInitial(), ScribuntoHooks\showStandardInputsOptions(), SpecialEditWatchlist\showTitles(), BaseBlacklistTest\testGetTypeFromTitle(), LocalisationUpdate\UpdaterTest\testReadMessages(), TraditionalImageGallery\toHTML(), MediaWiki\tryNormaliseRedirect(), wfArrayInsertAfter(), and wfRemoveDotSegments().

◆ $status

return $status

Definition at line 347 of file SyntaxHighlight.php.

Referenced by LocalFileLockError\__construct(), WikiImporter\__construct(), StatusValue\__toString(), FileBackendMultiWrite\accessibilityCheck(), PoolCounterRedis\acquireForAnyone(), PoolCounterRedis\acquireForMe(), RevDelList\acquireItemLocks(), ApiBase\addBlockInfoToStatus(), UploadFromChunks\addChunk(), ApiErrorFormatter\addMessagesFromStatus(), SwiftFileBackend\addMissingHashMetadata(), User\addToDatabase(), CheckDependencies\addToDependencies(), MediaWiki\Auth\AuthManager\allowsAuthenticationDataChange(), ApiErrorFormatter_BackCompat\arrayFromStatus(), ApiErrorFormatter\arrayFromStatus(), FileOpBatch\attempt(), FileOp\attempt(), EditPage\attemptSave(), MediaWiki\Auth\AuthManager\autoCreateUser(), MediaWiki\Auth\AuthManager\beginAccountCreation(), MediaWiki\Auth\AuthManager\beginAccountLink(), MediaWiki\Auth\AuthManager\beginAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider\beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\beginPrimaryAuthentication(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider\beginSecondaryAccountCreation(), MediaWiki\Auth\AuthManager\canCreateAccount(), MysqlInstaller\canCreateAccounts(), PostgresInstaller\canCreateObjectsForWebUser(), ChangeTags\canCreateTag(), ChangeTags\canDeleteTag(), User\changeAuthenticationData(), MWRestrictions\check(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), SpecialPasswordReset\checkExecutePermissions(), SpecialBlock\checkExecutePermissions(), PasswordPolicyChecks\checkMaximalPasswordLength(), PasswordPolicyChecks\checkMinimalPasswordLength(), PasswordPolicyChecks\checkMinimumPasswordLengthToLogin(), PasswordPolicyChecks\checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks\checkPasswordCannotMatchUsername(), PasswordPolicyChecks\checkPasswordNotInLargeBlacklist(), User\checkPasswordValidity(), SpecialCreateAccount\checkPermissions(), MovePage\checkPermissions(), MergeHistory\checkPermissions(), UserPasswordPolicy\checkPolicies(), PasswordPolicyChecks\checkPopularPasswordBlacklist(), FileRepo\cleanDir(), LocalFileRestoreBatch\cleanup(), FileRepo\cleanupBatch(), LocalRepo\cleanupDeletedBatch(), FSLockManager\closeLockHandles(), QuorumLockManager\collectPledgeQuorum(), FileBackendStore\concatenate(), FileBackendMultiWrite\concatenate(), FileRepo\concatenate(), UploadFromChunks\concatenateChunks(), ConfirmEditHooks\confirmEditMerged(), SimpleCaptcha\confirmEditMerged(), FileBackendMultiWrite\consistencyCheck(), MediaWiki\Auth\AuthManager\continueAccountCreation(), MediaWiki\Auth\AuthManager\continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider\continueLinkAttempt(), CopyFileBackend\copyFileBatch(), FileBackendStore\copyInternal(), SwiftFileBackend\createContainer(), DatabaseInstaller\createExtensionTables(), FileBackendStore\createInternal(), Installer\createMainpage(), Installer\createSysop(), SqliteInstaller\createTables(), PostgresInstaller\createTables(), LocalFile\delete(), FileRepo\deleteBatch(), SwiftFileBackend\deleteContainer(), FileBackendStore\deleteInternal(), LocalFile\deleteOld(), ChangeTags\deleteTagEverywhere(), CopyFileBackend\delFileBatch(), FileBackendStore\describeInternal(), ApiBase\dieStatus(), ApiUpload\dieStatusWithCode(), SpecialRedirect\dispatch(), AuthManagerSpecialPage\displayForm(), CreateFileOp\doAttempt(), StoreFileOp\doAttempt(), CopyFileOp\doAttempt(), MoveFileOp\doAttempt(), MediaWiki\Block\DatabaseBlock\doAutoblock(), FileBackendStore\doClean(), FSFileBackend\doCleanInternal(), SwiftFileBackend\doCleanInternal(), FileBackendStore\doConcatenate(), MemoryFileBackend\doCopyInternal(), FSFileBackend\doCopyInternal(), SwiftFileBackend\doCopyInternal(), MemoryFileBackend\doCreateInternal(), FSFileBackend\doCreateInternal(), SwiftFileBackend\doCreateInternal(), FileDeleteForm\doDelete(), Article\doDelete(), WikiPage\doDeleteArticle(), WikiPage\doDeleteArticleBatched(), WikiPage\doDeleteArticleReal(), MemoryFileBackend\doDeleteInternal(), FSFileBackend\doDeleteInternal(), SwiftFileBackend\doDeleteInternal(), SwiftFileBackend\doDescribeInternal(), SwiftFileBackend\doDirectoryExists(), FileBackendMultiWrite\doDirectoryOp(), Installer\doEnvironmentChecks(), FSFileBackend\doExecuteOpHandlesInternal(), SwiftFileBackend\doExecuteOpHandlesInternal(), Installer\doGenerateKeys(), PostgreSqlLockManager\doGetLocksOnServer(), MySqlLockManager\doGetLocksOnServer(), FSLockManager\doLock(), QuorumLockManager\doLockByType(), LockManager\doLockByType(), DBFileJournal\doLogChangeBatch(), UppercaseTitlesForUnicodeTransition\doMove(), FileBackendStore\doMoveInternal(), FSFileBackend\doMoveInternal(), SwiftFileBackend\doMoveInternal(), CleanupUploadStash\doOperations(), FileBackendMultiWrite\doOperationsInternal(), FileBackendStore\doOperationsInternal(), FileOpPerfTest\doPerfTest(), DeleteFileOp\doPrecheck(), DescribeFileOp\doPrecheck(), CreateFileOp\doPrecheck(), CopyFileOp\doPrecheck(), MoveFileOp\doPrecheck(), StoreFileOp\doPrecheck(), RevDelFileList\doPreCommitUpdates(), FileBackendStore\doPrepare(), FSFileBackend\doPrepareInternal(), SwiftFileBackend\doPrepareInternal(), FileBackendStore\doPublish(), FSFileBackend\doPublishInternal(), SwiftFileBackend\doPublishInternal(), DBFileJournal\doPurgeOldLogs(), FileBackendMultiWrite\doQuickOperationsInternal(), FileBackendStore\doQuickOperationsInternal(), FileBackendStore\doSecure(), FSFileBackend\doSecureInternal(), SwiftFileBackend\doSecureInternal(), FSLockManager\doSingleLock(), FSLockManager\doSingleUnlock(), MemoryFileBackend\doStoreInternal(), FSFileBackend\doStoreInternal(), SwiftFileBackend\doStoreInternal(), FileBackendStore\doStreamFile(), SwiftFileBackend\doStreamFile(), MovePageForm\doSubmit(), SvgHandler\doTransform(), NullLockManager\doUnlock(), FSLockManager\doUnlock(), QuorumLockManager\doUnlockByType(), LockManager\doUnlockByType(), WatchAction\doUnwatch(), WatchAction\doWatch(), EditPage\edit(), WikiEditorHooks\editPageAttemptSaveAfter(), UserrightsPage\editUserGroupsForm(), DatabaseInstaller\enableLB(), WebInstallerInstall\endStage(), Installer\envCheckDB(), PoolCounterWorkViaCallback\error(), PoolWorkArticleView\error(), ApiBase\errorArrayToStatus(), ApiProtect\execute(), WebInstallerDBConnect\execute(), WebInstallerDBSettings\execute(), WebInstallerExistingWiki\execute(), WebInstallerWelcome\execute(), ApiManageTags\execute(), ApiImageRotate\execute(), ApiMergeHistory\execute(), ApiMove\execute(), ApiUpload\execute(), ApiRevisionDelete\execute(), ApiEditPage\execute(), ApiFileRevert\execute(), ApiChangeAuthenticationData\execute(), ApiDelete\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), ApiUnblock\execute(), ApiBlock\execute(), AddChangeTag\execute(), ChangePassword\execute(), MigrateFileRepoLayout\execute(), Protect\execute(), ApiStashEdit\execute(), ApiSetPageLanguage\execute(), ApiRemoveAuthenticationData\execute(), DeleteOldFancyCaptchas\execute(), EditCLI\execute(), MysqlMaintenance\execute(), ImportTextFiles\execute(), SpecialChangeCredentials\execute(), ApiResetPassword\execute(), CreateAndPromote\execute(), MoveBatch\execute(), FileDeleteForm\execute(), RebuildLocalisationCache\execute(), ApiLogin\execute(), UpdateMediaWiki\execute(), LocalFileRestoreBatch\execute(), UserrightsPage\execute(), ApiQueryUsers\execute(), PoolCounterWork\execute(), CommandLineInstaller\execute(), ImportImages\execute(), LocalFileMoveBatch\execute(), ZipDirectoryReader\execute(), PasswordReset\execute(), LoginSignupSpecialPage\execute(), MediaWiki\Shell\Command\execute(), JobRunner\executeJob(), ApiRevisionDelete\extractStatusInfo(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), ScribuntoContent\fillParserOutput(), SpamBlacklistHooks\filterMergedContent(), Installer\findExtensionsByType(), EditPage\formatStatusErrors(), MemcLockManager\freeLocksOnServer(), RedisLockManager\freeLocksOnServer(), File\generateAndSaveThumb(), Wikimedia\Rdbms\Database\getCacheSetOptions(), ApiUpload\getChunkResult(), PostgresInstaller\getConnection(), DatabaseInstaller\getConnection(), SwiftFileBackend\getDirListPageInternal(), MysqlInstaller\getEngines(), HTMLForm\getErrorsOrWarnings(), SwiftFileBackend\getFileListPageInternal(), PostgresInstaller\getInstallUserPermissions(), RedisLockManager\getLocksOnServer(), MemcLockManager\getLocksOnServer(), DBLockManager\getLocksOnServer(), Wikimedia\Rdbms\DatabaseMysqlBase\getMysqlStatus(), PostgresInstaller\getPgConnection(), ApiCSPReport\getReport(), FileBackend\getScopedFileLocks(), FileBackendDBRepoWrapper\getScopedLocksForOps(), FileBackendMultiWrite\getScopedLocksForOps(), FileBackendStore\getScopedLocksForOps(), TextSlotDiffRenderer\getTextDiff(), ApiUserrights\getUrUser(), WebInstallerExistingWiki\handleExistingUpgrade(), Scribunto_LuaStandaloneInterpreter\handleIOError(), EditPage\handleStatus(), ScribuntoContent\highlight(), ThumbnailRenderJob\hitThumbUrl(), ForeignAPIRepo\httpGet(), ImportableUploadRevisionImporter\import(), WebInstallerExistingWiki\importVariables(), FileRepo\initDirectory(), FileRepo\initZones(), EditPage\internalAttemptSave(), WANObjectCacheReaper\invoke(), PasswordReset\isAllowed(), MovePage\isValidFileMove(), MergeHistory\isValidMerge(), MovePage\isValidMove(), Scribunto_LuaTextLibrary\jsonDecode(), RecompressTracked\killChildProcs(), MessageCache\loadFromDBWithLock(), Wikimedia\Rdbms\DatabaseSqlite\lock(), LocalFile\lock(), LockManager\lockByType(), ApiAuthManagerHelper\logAuthenticationResult(), SpecialUserLogin\logAuthResult(), SpecialCreateAccount\logAuthResult(), PoolCounterWork\logError(), BotPassword\login(), BotPassword\loginHook(), Wikimedia\Rdbms\DatabaseMysqlBase\masterPosWait(), SpecialBlock\maybeAlterFormDefaults(), MergeHistory\merge(), MovePage\move(), LocalFile\move(), MovePage\moveFile(), MovePage\moveIfAllowed(), FileBackendStore\moveInternal(), CleanupCaps\movePage(), ApiMove\moveSubpages(), Title\moveSubpages(), MovePage\moveSubpagesInternal(), Title\moveTo(), MovePage\moveToInternal(), MovePage\moveUnsafe(), UppercaseTitlesForUnicodeTransition\mungeTitle(), DatabaseInstaller\needsUpgrade(), FileRepo\newFatal(), FileRepo\newGood(), SwiftFileBackend\objectListing(), onApiFormatHighlight(), onContentGetParserOutput(), GadgetHooks\onEditFilterMergedContent(), SwiftFileBackend\onError(), TitleBlacklistHooks\onMovePageCheckPermissions(), SpecialChangeContentModel\onSubmit(), SpecialInterwiki\onSubmit(), SpecialExpandTemplates\onSubmitInput(), MysqlInstaller\openConnection(), SqliteInstaller\openConnection(), PostgresInstaller\openConnectionToAnyDB(), PostgresInstaller\openConnectionWithParams(), PostgresInstaller\openPgConnection(), SpecialUploadStash\outputRemoteScaledThumb(), AuthManagerSpecialPage\performAuthenticationStep(), Installer\performInstallation(), ApiUpload\performStash(), ApiUpload\performUpload(), DatabaseInstaller\populateInterwikiTable(), Installer\populateSiteStats(), FileOp\precheck(), FileOp\precheckDestExistence(), MysqlInstaller\preUpgrade(), SpecialTags\processCreateTagForm(), SpecialBlock\processForm(), ApiTag\processIndividual(), SquidPurgeClient\processStatusLine(), SpecialTags\processTagForm(), SpecialUnblock\processUnblock(), SpecialUpload\processUpload(), FSLockManager\pruneKeyLockFiles(), FileRepo\publish(), FileRepo\publishBatch(), LocalFile\publishTo(), MediaWiki\Sparql\SparqlClient\query(), FileRepo\quickCleanDir(), FileRepo\quickImportBatch(), FileRepo\quickPurgeBatch(), Installer\readExtension(), UploadFromUrl\reallyFetchFile(), LocalFile\recordUpload2(), MediaWiki\Session\Session\BotPasswordSessionProvider\refreshSessionInfo(), PoolCounterRedis\release(), PostgreSqlLockManager\releaseAllLocks(), MySqlLockManager\releaseAllLocks(), RevDelList\releaseItemLocks(), QuorumLockManager\releasePledges(), Scribunto_LuaStandaloneEngine\reportLimitData(), MediaWiki\Http\HttpRequestFactory\request(), LocalFile\restore(), FileBackendMultiWrite\resyncFiles(), EmaillingJob\run(), AssembleUploadChunksJob\run(), PublishStashedFileJob\run(), ApiQuerySearch\run(), ApiQueryRevisions\run(), MigrateFileRepoLayout\runBatch(), FileOpBatch\runParallelBatches(), EditPage\runPostMergeFilters(), ProtectionForm\save(), EraseArchivedFile\scrubVersion(), ApiAuthManagerHelper\securitySensitiveOperation(), MediaWiki\Auth\AuthManager\securitySensitiveOperationStatus(), UserMailer\send(), UserMailer\sendInternal(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendNewAccountEmail(), SwiftFileBackend\setContainerAccess(), DatabaseUpdater\setFileAccess(), User\setPasswordInternal(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider\setPasswordResetFlag(), WikiImporter\setTargetRootPage(), SqliteInstaller\setupDatabase(), MysqlInstaller\setupDatabase(), PostgresInstaller\setupDatabase(), PostgresInstaller\setupPLpgSQL(), PostgresInstaller\setupSchema(), DatabaseInstaller\setupSchemaVars(), SqliteInstaller\setupSearchIndex(), MysqlInstaller\setupUser(), PostgresInstaller\setupUser(), RevDelList\setVisibility(), SpecialInterwiki\showForm(), MovePageForm\showForm(), WebInstaller\showStatusBox(), WebInstaller\showStatusMessage(), OrderedStreamingForkController\start(), ForkController\start(), DatabaseInstaller\stepApplySourceFile(), ExternalStoreMwstore\store(), FileRepo\store(), FileRepo\storeBatch(), FileBackendStore\storeInternal(), FileBackendStore\streamFile(), FileRepo\streamFileWithStatus(), WebInstallerName\submit(), SpecialEmailUser\submit(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), PostgresInstaller\submitConnectForm(), MysqlInstaller\submitConnectForm(), SpecialConfirmEmail\submitSend(), PostgresInstaller\submitSettingsForm(), MysqlInstaller\submitSettingsForm(), SyncFileBackend\syncBackends(), SyncFileBackend\syncFileBatch(), Job\teardown(), Scribunto_LuaStandaloneInterpreterTest\testGetStatus(), CaptchaPreAuthenticationProviderTest\testTestForAccountCreation(), CaptchaPreAuthenticationProviderTest\testTestForAuthentication(), ScribuntoException\toStatus(), MediaWiki\triggerAsyncJobs(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider\tryReset(), AuthManagerSpecialPage\trySubmit(), SpecialUndelete\undelete(), PageArchive\undeleteRevisions(), LockManager\unlockByType(), ChangeTagsLogList\updateChangeTagsOnAll(), ChangeTagsRevisionList\updateChangeTagsOnAll(), RefreshFileHeaders\updateFileHeaders(), LocalFile\upload(), OldLocalFile\uploadOld(), HTMLRestrictionsField\validate(), ScribuntoHooks\validateScript(), SpecialBlock\validateTarget(), SpecialBlock\validateTargetField(), LocalFileMoveBatch\verifyDBUpdates(), PoolCounterRedis\waitForSlotOrNotif(), ApiWatch\watchTitle(), wfGenerateThumbnail(), wfProxyThumbnailRequest(), wfResetOutputBuffers(), wfStreamThumb(), wfThumbError(), and wfThumbErrorText().

◆ O

class SyntaxHighlight startinline highlight highlight hl_lines start start linenostart start nowrap highlight l f html O

Definition at line 22 of file SyntaxHighlight.php.

◆ Pygments

class SyntaxHighlight startinline highlight highlight hl_lines start start linenostart start nowrap highlight l f html syntaxhighlight error pygments invocation failure Failed to invoke Pygments

Definition at line 22 of file SyntaxHighlight.php.

◆ value