{"name":"@codemirror/lang-php","version":"0.20.0","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijnh@gmail.com"},"license":"MIT","_id":"@codemirror/lang-php@0.20.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":"3b589b64718d68e705e4d983a53ff45bca5f8ad4","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-php/download/@codemirror/lang-php-0.20.0.tgz","fileCount":7,"integrity":"sha512-k0MEkKN2tCZCmHbORJBxsv1W6sYxOkhANbVRC7yAx6zm9nYJb9JhVmSDZpJXnOUz9vX4APONxXTVO+RDav0Cow==","signatures":[{"sig":"MEYCIQC0yNEg0CZZ/ONX3aTRcC9J6PnoNfi8SdZEPsKMCP4M1gIhAKMHMNkGrg+Zx3eGIfBTDFHx/aYD9elii6CzkkHPZ6S/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiYBVjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrh6w//almZY5PkXIX5m/5/hSmslMBgvOnVelHnYF77qRjBy9VuJpEe\r\nQEjlMTnDxyiFa8J9ysnu9TbSiulhrttLumUx7iTVuFCpp6sSkzseYfcGOI+S\r\nPVYdp5DDag8YLBlWX0XO/g5qh5zp0+aVPMAq3Z0TRtX6mboXQ/WSbqws/KqM\r\nfhBIAJh7d/LACw25264XG3yUuUk1qBylkInitTyayXhyEoady7h6AUYiQ6rd\r\n7Uf7V49KqPUqpL5xtFn98Wkuo/oUki0r5URWRwxS7MYSTe0+hPDnyplfFuGH\r\nhli9lH7g23bJiARdU5eWvPqLk1iIivdO/X31A05c5WMteVLlmHa5OyJYkQcD\r\nZjOELzcbaRZ/dZQ4AqLyGE338RD6kFUlgRHLqiDzYIBeWYazlYWs0p7VwBEi\r\nFUI1MS6HWGCTIqWWgnxPCejHBtWiNGLhnRXWWLCSVLNdd9pqFcxUMPDarFPj\r\ncTCnNT8fOa3vB/NTsPl/eO8GC5aXOTEkHQNHJ2b5RgNi2JgDRo4MeZ/7NqqS\r\nAg8VQ4EZuHcXE0mqnkjHY4j4vvwrPsEFWbUIp1RKkbYlQGMIpyfG321kLioD\r\n8lyUb2n2SyURdoFWBP+c0sxC6fDIv670LBveQtOD7f/j3E8HzVoIKTerPO0l\r\nhbn+xMcp1B/3X927pGhra9BJebrx5GAFveQ=\r\n=3w2S\r\n-----END PGP SIGNATURE-----\r\n","size":3778,"noattachment":false,"key":"/@codemirror/lang-php/-/@codemirror/lang-php-0.20.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":"70360ab433af52b91919d415e835d074f197236a","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.4.0","description":"PHP language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"16.13.1","dependencies":{"@lezer/php":"^0.16.0","@lezer/common":"^0.16.0","@codemirror/state":"^0.20.0","@codemirror/language":"^0.20.0","@codemirror/lang-html":"^0.20.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^0.1.5"},"_npmOperationalInternal":{"tmp":"tmp/lang-php_0.20.0_1650464099453_0.22348713029042422","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":1650464099636,"_cnpm_publish_time":1650464099636,"dist-tags":{"latest":"6.0.2"}}