{"name":"@codemirror/lang-php","version":"6.0.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-php@6.0.0","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijnh@gmail.com"}],"homepage":"https://github.com/codemirror/lang-php#readme","bugs":{"url":"https://github.com/codemirror/lang-php/issues"},"dist":{"shasum":"d16f4244668c73cd76070e4d73f7405dfb895310","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-php/download/@codemirror/lang-php-6.0.0.tgz","fileCount":7,"integrity":"sha512-96CEjq0xEgbzc6bdFPwILPfZ6m8917JRbh2oPszZJABlYxG4Y+eYjtYkUTDb4yuyjQKyigHoeGC6zoIOYA1NWA==","signatures":[{"sig":"MEUCICduOqs6098Cp+8M7m4Tv4Tv+wwkBolzlT+A3wsvxRBtAiEAzH5cnUb/iequ8Tx9Db3up6vtHvI4Gj4mK+uCpmBpyzU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioEs3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXHg/+LJvv9z/Uuc3k4X/NTfoDNetiyuqOPbAmRG3Vb4wMns/SKmSd\r\nAhdQ9JSHdB2O9lTVflszYXS6PKeESSQFXhPnB3TAAu76T9ndjovYtduSkUKf\r\n5bl9u9MTSBgVOZB274CGSm2vdlxkc2HSnG7AIA+UqCCqdVqIhlXqzzeycDW0\r\nlZBCL/HrIPOkO98Cz3odAmZmPw5b85mOMpfhDWJyRRLL9EwFTojUeR0mEzQp\r\nIyxBYJ88gb6WqHCBLz0bGAJddff17CU92K68u54J5tPhmQmHGkgpjAG8FLe1\r\nJi/OYOHsU+/lnsENX6tJh35CUwAq7GXDl4BNzCmgLJQGdGQ9++TASqs8ZCd0\r\n9Jov1+lg+8kI+cU7ua29vKcAS0r5awxPGnKxXpEHcyOK3FfWKSjYY8U2uhRd\r\nQqZj9ABRfuxFFEueu5AFB16f85gKYzXrvUe2kHlBNdGGb+GEeHNa59vNHCgg\r\nekcWib3XOS9xnle77NdDG7EUw1zX9lS5OIGhx85T21jtlUr2EKzreXpbso85\r\n9t3451EpyW8eahn+817nU6w6b8v/8RouIn9WBZDz2/S4h33BhZhRIqLbZx0a\r\nh7pXuqG06iXRNr77eZUJkkRKzuD1KEMnxzVhAnviyygB2dhECn7x5WML4lVB\r\nC8OiTIxXGuBPu9d7T4FQC/xLWqWiPjtrpJA=\r\n=Tucu\r\n-----END PGP SIGNATURE-----\r\n","size":3806,"noattachment":false,"key":"/@codemirror/lang-php/-/@codemirror/lang-php-6.0.0.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"b4965ad87d58a79c75d17f568ccb3e1022cce1f4","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/php.ts"},"_npmUser":{"name":"marijn","email":"marijnh@gmail.com"},"repository":{"url":"git+https://github.com/codemirror/lang-php.git","type":"git"},"_npmVersion":"8.10.0","description":"PHP language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"@lezer/php":"^1.0.0","@lezer/common":"^1.0.0","@codemirror/state":"^6.0.0","@codemirror/language":"^6.0.0","@codemirror/lang-html":"^6.0.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.5"},"_npmOperationalInternal":{"tmp":"tmp/lang-php_6.0.0_1654672183056_0.23315688651841704","host":"s3://npm-registry-packages"},"readme":"<!-- NOTE: README.md is generated from src/README.md -->\n\n# @codemirror/lang-php [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-php.svg)](https://www.npmjs.org/package/@codemirror/lang-php)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/lang-php/blob/main/CHANGELOG.md) ]\n\nThis package implements PHP language support for the\n[CodeMirror](https://codemirror.net/) code editor.\n\nThe [project page](https://codemirror.net/) has more information, a\nnumber of [examples](https://codemirror.net/examples/) and the\n[documentation](https://codemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://github.com/codemirror/lang-php/tree/main/LICENSE).\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\n## Usage\n\n```javascript\nimport {EditorView, basicSetup} from \"codemirror\"\nimport {php} from \"@codemirror/lang-php\"\n\nconst view = new EditorView({\n  parent: document.body,\n  doc: `<? echo \"Hello world\" ?>`,\n  extensions: [basicSetup, php()]\n})\n```\n\n## API Reference\n\n<dl>\n<dt id=\"user-content-php\">\n  <code><strong><a href=\"#user-content-php\">php</a></strong>(<a id=\"user-content-php^config\" href=\"#user-content-php^config\">config</a>&#8288;?: <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\">Object</a> = {}) → <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a></code></dt>\n\n<dd><p>PHP language support.</p>\n<dl><dt id=\"user-content-php^config\">\n  <code><strong><a href=\"#user-content-php^config\">config</a></strong></code></dt>\n\n<dd><dl><dt id=\"user-content-php^config.baselanguage\">\n  <code><strong><a href=\"#user-content-php^config.baselanguage\">baseLanguage</a></strong>&#8288;?: <a href=\"https://codemirror.net/docs/ref#language.Language\">Language</a></code></dt>\n\n<dd><p>By default, the parser will treat content outside of <code>&lt;?</code> and\n<code>?&gt;</code> markers as HTML. You can pass a different language here to\nchange that. Explicitly passing disables parsing of such content.</p>\n</dd><dt id=\"user-content-php^config.plain\">\n  <code><strong><a href=\"#user-content-php^config.plain\">plain</a></strong>&#8288;?: <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\">boolean</a></code></dt>\n\n<dd><p>By default, PHP parsing only starts at the first <code>&lt;?</code> marker.\nWhen you set this to true, it starts immediately at the start of\nthe document.</p>\n</dd></dl></dd></dl></dd>\n<dt id=\"user-content-phplanguage\">\n  <code><strong><a href=\"#user-content-phplanguage\">phpLanguage</a></strong>: <a href=\"https://codemirror.net/docs/ref#language.LRLanguage\">LRLanguage</a></code></dt>\n\n<dd><p>A language provider based on the <a href=\"https://github.com/lezer-parser/php\">Lezer PHP\nparser</a>, extended with\nhighlighting and indentation information.</p>\n</dd>\n</dl>\n","publish_time":1654672183195,"_cnpm_publish_time":1654672183195,"dist-tags":{"latest":"6.0.2"}}