HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/martyknows.com/wp-content/plugins/enlighter/modules/core/LanguageManager.php
<?php

namespace Enlighter;

class LanguageManager{

    private $_cachedData = null;

    // list of build-in languages
    const LANGUAGES = array(
        'generic' => 'Generic Highlighting',
        'raw' => 'Plain text',
        'abap' => 'ABAP',
        'asm' => 'Generic Assembly',
        'apache' => 'Apache httpd',
        'avrasm' => 'Avr Assembly',
        'bash' => 'Bash script',
        'bat' => 'Batchfile',
        'c' => 'C',
        'cpp' => 'C++',
        'csharp' => 'C#',
        'css' => 'CSS',
        'cython' => 'Cython',
        'cordpro' => 'CordPro',
        'dart' => 'Dart',
        'diff' => 'Diff',
        'dockerfile' => 'Dockerfile',
        'groovy' => 'Groovy',
        'golang' => 'Go',
        'html' => 'HTML',
        'htaccess' => '.htaccess',
        'ini' => 'Ini/Conf Syntax',
        'java' => 'Java',
        'js' => 'Javascript',
        'json' => 'JSON',
        'kotlin' => 'Kotlin',
        'latex' => 'LaTeX',
        'less' => 'LESS',
        'lighttpd' => 'lighttpd',
        'lua' => 'Lua',
        'md' => 'Markdown',
        'mariadb' => 'MariaDB',
        'matlab' => 'Matlab/Octave',
        'mssql' => 'Microsoft SQL',
        'nginx' => 'NGINX',
        'nsis' => 'NSIS',
        'oracledb' => 'OracleDB',
        'php' => 'PHP',
        'postgresql' => 'PostgreSQL',
        'powershell' => 'PowerShell',
        'prolog' => 'Prolog',
        'python' => 'Python',
        'purebasic' => 'Purebasic',
        'qml' => 'QML',
        'r' => 'R',
        'routeros' => 'RouterOS',
        'ruby' => 'Ruby',
        'rust' => 'Rust',
        'scala' => 'SCALA',
        'scss' => 'SCSS',
        'shell' => 'Shellscript',
        'sql' => 'SQL',
        'squirrel' => 'Squirrel',
        'swift' => 'Swift',
        'typescript' => 'TypeScript',
        'vhdl' => 'VHDL',
        'visualbasic' => 'VisualBasic',
        'verilog' => 'Verilog',
        'xml' => 'XML',
        'yaml' => 'YAML'
    );

    // fetch the language list
    public function getLanguages(){
        // cached ?
        if ($this->_cachedData === null){
            $this->_cachedData = apply_filters('enlighter_languages', self::LANGUAGES);
        }

        return $this->_cachedData;
    }
}