We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to get a language injection example?
The text was updated successfully, but these errors were encountered:
I can register simple implementation via plugin.xml But for my needs full plugin is overkill. LivePlugin is doing all small things now.
Example. I have a small implementation of MultiHostInjector
class PhpExampleInjector: MultiHostInjector { override fun getLanguagesToInject(registrar: MultiHostRegistrar, context: PsiElement) { val tag = context.parent if (tag is HtmlTag && tag.name.equals("php")) { registrar.startInjecting(PhpLanguage.INSTANCE) registrar.addPlace("<?php ", " ?>", context as XmlTextImpl, TextRange.create(0, context.textLength - 1)) registrar.doneInjecting() } } override fun elementsToInjectIn(): List<Class<out PsiElement>> = listOf(XmlTextImpl::class.java) }
is it possible to register it in runtime using Live Plugin?
Sorry, something went wrong.
I'm trying to register example from here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/18009280429202-Injecting-PHP-in-HTML-in-PHP-files
No branches or pull requests
Is it possible to get a language injection example?
The text was updated successfully, but these errors were encountered: