X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fmodules%2Fcontrib%2Fdevel%2Fkint%2Fkint%2Fconfig.default.php;fp=web%2Fmodules%2Fcontrib%2Fdevel%2Fkint%2Fkint%2Fconfig.default.php;h=72f0a693359657cabaeba784921679a48bfb40e4;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/modules/contrib/devel/kint/kint/config.default.php b/web/modules/contrib/devel/kint/kint/config.default.php new file mode 100644 index 000000000..72f0a6933 --- /dev/null +++ b/web/modules/contrib/devel/kint/kint/config.default.php @@ -0,0 +1,94 @@ + '<ROOT>' ) + * + * [!] EXAMPLE (for Kohana framework): + * + * $_kintSettings['appRootDirs'] = array( + * APPPATH => 'APPPATH', // make sure the constants are already defined at the time of including this config file + * SYSPATH => 'SYSPATH', + * MODPATH => 'MODPATH', + * DOCROOT => 'DOCROOT', + * ); + * + * [!] EXAMPLE #2 (for a semi-universal approach) + * + * $_kintSettings['appRootDirs'] = array( + * realpath( __DIR__ . '/../../..' ) => 'ROOT', // go up as many levels as needed in the realpath() param + * ); + * + * $_kintSettings['fileLinkFormat'] = 'http://localhost:8091/?message=%f:%l'; + * + */ +$_kintSettings['appRootDirs'] = isset( $_SERVER['DOCUMENT_ROOT'] ) + ? array( $_SERVER['DOCUMENT_ROOT'] => '<ROOT>' ) + : array(); + + +/** @var int max length of string before it is truncated and displayed separately in full. Zero or false to disable */ +$_kintSettings['maxStrLength'] = 80; + +/** @var array possible alternative char encodings in order of probability, eg. array('windows-1251') */ +$_kintSettings['charEncodings'] = array( + 'UTF-8', + 'Windows-1252', # Western; includes iso-8859-1, replace this with windows-1251 if you have Russian code + 'euc-jp', # Japanese + + # all other charsets cannot be differentiated by PHP and/or are not supported by mb_* functions, + # I need a better means of detecting the codeset, no idea how though :( + + // 'iso-8859-13', # Baltic + // 'windows-1251', # Cyrillic + // 'windows-1250', # Central European + // 'shift_jis', # Japanese + // 'iso-2022-jp', # Japanese +); + + +/** @var int max array/object levels to go deep, if zero no limits are applied */ +$_kintSettings['maxLevels'] = 7; + + +/** @var string name of theme for rich view */ +$_kintSettings['theme'] = 'original'; + + +/** @var bool enable detection when Kint is command line. Formats output with whitespace only; does not HTML-escape it */ +$_kintSettings['cliDetection'] = true; + +/** @var bool in addition to above setting, enable detection when Kint is run in *UNIX* command line. + * Attempts to add coloring, but if seen as plain text, the color information is visible as gibberish + */ +$_kintSettings['cliColors'] = true; + + +unset( $_kintSettings ); \ No newline at end of file