{"name":"@codemirror/lang-php","version":"6.0.1","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-php@6.0.1","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":"fa34cc75562178325861a5731f79bd621f57ffaa","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-php/download/@codemirror/lang-php-6.0.1.tgz","fileCount":7,"integrity":"sha512-ublojMdw/PNWa7qdN5TMsjmqkNuTBD3k6ndZ4Z0S25SBAiweFGyY68AS3xNcIOlb6DDFDvKlinLQ40vSLqf8xA==","signatures":[{"sig":"MEUCICTUxq+n46X58khk9kdk4jCknA34ipgLD9JBEZ+gW+BVAiEA/eb1RVp0Mxn0ry+SAMKOpVYpdh3XjEHFNvwC3v55OCQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12179,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVn5LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqiug//ahRzCKebh/S+i9Wqiu0VflcKZj/uLrSJ+5A+1XDjJS3Rj+jr\r\nCjk8+bB3A6H0eyZ/3F2RBs4azwrfUfhcK4SxGe81YCGM/3qqoSkdYKeRNDdd\r\nLXmJ4LCrRE0MYhOogxefrghPi8ziYJUnX9Bz2SCVlEapZLZORj1OKs9cpu7T\r\nsUPOgCM0xQfaMwX+9i4Qlbsd5hu0mz4MteCBYvxSnKAZMW1uNQy1UESpc30T\r\nxf5WhGpwuqJuffDS3dRQAz08fzMfOKHH22euiB6Jqv7Zjb2jK5DQGz4UDJPE\r\nIzXdvZxRyO8XbXrRE0Lfe+YgLa27MEVUiALbmrJc0ASlSdandCxuJfWwkeNa\r\nseEywjGC9Z5yxOrCu9egwz2oWleCJrdvu82XJekhjUM1eiNd8BJmwjCLLJTh\r\nkLrLCM0XGvxruQYOB3XgLOgiGyD9eUsasIM5oUGCrNs9rL0/gwEMjBIbW+qR\r\nXjQQjLoAV3QTqd+RRAc8wzRzm0ITjzGTixga6idgBF2rcyOIjdzt5/iPx+L0\r\ngbk1bQ47qShx0cjDLC/hH/H9VbIRuun1gZWtCV8UGFQU/5d/a/Z4TD+f86Pz\r\ns5Q02R84c9QNazx7jMrE7W3EFnIQp/Tgt5KM3QVwr+hmqCPWAfv8U+5srcZt\r\nTwCJ3+t+G8nMKR4jbQsF7uZDuLLFIsQu0cc=\r\n=q/QJ\r\n-----END PGP SIGNATURE-----\r\n","size":3900,"noattachment":false,"key":"/@codemirror/lang-php/-/@codemirror/lang-php-6.0.1.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":"8edb24c525431ff5083bc25ffe4d7a0d0f19ae41","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.1_1666612811669_0.35110125552770866","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":1666612811834,"_cnpm_publish_time":1666612811834,"dist-tags":{"latest":"6.0.2"}}