{"name":"@codemirror/lang-php","version":"6.0.2","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@codemirror/lang-php@6.0.2","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijn@haverbeke.berlin"}],"homepage":"https://github.com/codemirror/lang-php#readme","bugs":{"url":"https://github.com/codemirror/lang-php/issues"},"dist":{"shasum":"bdc439d195c8e73513bc5b971a99a57b5c99ee55","tarball":"http://registry-npm.ywwl.com/@codemirror/lang-php/download/@codemirror/lang-php-6.0.2.tgz","fileCount":8,"integrity":"sha512-ZKy2v1n8Fc8oEXj0Th0PUMXzQJ0AIR6TaZU+PbDHExFwdu+guzOA4jmCHS1Nz4vbFezwD7LyBdDnddSJeScMCA==","signatures":[{"sig":"MEQCID8y7+JcSlNW9hQE3JmAX52QDynH8lt9LnKLNePxdPoHAiB3HMSatXhefSyxh+yZ8kUuRJi5UP01PLVjv13bnltvGw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13284,"size":4078,"noattachment":false,"key":"/@codemirror/lang-php/-/@codemirror/lang-php-6.0.2.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":"ce25655e29f32714d3f9b7b3732084445821907d","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/php.ts"},"_npmUser":{"name":"marijn","actor":{"name":"marijn","type":"user","email":"marijn@haverbeke.berlin"},"email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://github.com/codemirror/lang-php.git","type":"git"},"_npmVersion":"11.3.0","description":"PHP language support for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","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":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/lang-php_6.0.2_1750334159789_0.13762098092426234","host":"s3://npm-registry-packages-npm-production"},"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":1750334159955,"_cnpm_publish_time":1750334159955,"dist-tags":{"latest":"6.0.2"}}