Closed nem75 closed 2 years ago
Rendered with Makefile plugin:
Rendered with just-plugin:
Yes, it's a required feature. I have implemented it https://github.com/linux-china/jetbrains-just-plugin/blob/master/src/test/kotlin/org/jetbrains/plugins/template/JustCodeBlockLanguageInjector.kt and I should do more testing, for example recipes with python. I will enable it on next version, and it's a trial feature.
Ooh, shiny. Should've checked the branches I guess. Thanks in advance! :)
@nem75 done with version 0.2.4
Hey @linux-china, thanks a lot.
Just noticed though, syntax highlighting only seems to work for implicit shell scripts. As soon es I define a script explicitly via shebang, the highlighting is gone. :/
Any chance this could be fixed?
@nem75 :) my fault, and you should use #!/usr/bin/env sh
now. I will add bash, zsh, fish and nu support :)
Can't, we use bash syntax by default. But I'm happy to wait. :)
The Jetbrains Makefile plugin uses the "Shell script" language syntax highlighting and inspections for inline shell scripts in recipes.
Would be neat if this plugin could do the same.
Unfortunately I have no clue about programming Jetbrains plugins, but some relevant piece of code in the Makefile plugin seems to be this:
https://github.com/JetBrains/intellij-plugins/blob/0f07ca63355d5530b441ca566c98f17c560e77f8/makefile/src/com/jetbrains/lang/makefile/MakefileShellLanguageInjector.kt#L11