{"name":"@codemirror/lang-php","version":"0.19.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-php@0.19.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":"d202cbac62aa01b29f39b74ca2df1af9d1a8fa99","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-php/download/@codemirror/lang-php-0.19.0.tgz","fileCount":7,"integrity":"sha512-1FBC7m+TQOoAn+JcFNYkukoVG+nW2T56xlta0e7uwZFG0LyowHJHQkqG0tPxijFwnuyYZBGyzi0p/VN8Os1wow==","signatures":[{"sig":"MEYCIQC9lpmhKgtUnVmJEPTHGmu6HMHA1+68FN7EEx0bLC9wrQIhAPoOpNEq3Oh54UhIY/Sq1CblSRN1aAWy5GTfhDZxYe9w","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16750,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMmQrCRA9TVsSAnZWagAAVj0QAJ5subh9YujUZ+cV1zps\nqAwnpglkZ0posrBRo7c72G/w3FY0cNIZWtNDKbzcyM26ONwwYgSTF9KOW4CD\nhJsx1C47v5tRDrxfMof6HePDFEVcvIABqmYlgkifA9RhHYoEN8FUfGdUH77f\nlisVlFeWdl30H8gkPr7t/K+Hp869LqTMy2Sk49BQXlUgzIgSKUY8W1fn5Cei\n6OZQ/R/2xOCpmp1qfz6wjgfk+FxtIeHUlUzpufezOKdQUGTqIBIBnY+y4bDs\n5Y6XzCpMwvZSHyRWJ4zSEUzHdp0BAyr7yiAYSYCyMrbuUcV41fhqjpjwaR+s\nUG46kSzDWmmiUqtWQqFgSn5ri9rUxwb36QlZBWPSmEszRZOqiQtrUj3pbWkv\nfs4VJt7n9Q41K+k2J0FXPdxva9lnOUZ1oVAkydK1CA8OIxKLDNBdMpEHPjv6\nMgEmKQksTkzEqiAkBEdIGMFVa5XL6s5ql96OYQgOsqzwzuduXsPuZJtcgAEK\nBmlfWWYdVEByCEOuPFnfq+sUvMINtmhSk0TvoNgIg40VpJ+JuVrT8wOiDzeN\nBCYXcG8CWiM1MsW3rvKB1PEJhOQtSag1NEhUT319YOozrLKoe5mJclia9Vs3\nAyFO7/AMl6/uTxYwR69wnI6hcIL1NO7/F+GKIoIY01rHlLQF7mLhccBAZV2L\nUoeI\r\n=Wm4v\r\n-----END PGP SIGNATURE-----\r\n","size":4480,"noattachment":false,"key":"/@codemirror/lang-php/-/@codemirror/lang-php-0.19.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":"d6228eee6a3256fa08f6a2f1272b76c332762620","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":"7.18.1","description":"PHP language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"16.4.0","dependencies":{"@lezer/php":"^0.15.0","@lezer/common":"^0.15.0","@codemirror/state":"^0.19.0","@codemirror/language":"^0.19.0","@codemirror/highlight":"^0.19.0","@codemirror/lang-html":"^0.19.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.5"},"_npmOperationalInternal":{"tmp":"tmp/lang-php_0.19.0_1630692394888_0.0740742232071332","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":1630692395102,"_cnpm_publish_time":1630692395102,"dist-tags":{"latest":"6.0.2"}}