Is it possible to turn off selectively error highlighting?
I have something like the following in a .groovy file:
#!/bin/bash
function trampoline() {
local interpreter="$1"
shift
umask 077
tmpdir="$(mktemp -d -t $$.XXXXXXXXXXXXXXXX)"
tmpfile="${tmpdir}/$(basename $0)"
sed -e '1,/^!#$/d' "$0" >"${tmpfile}" && "${interpreter}" "${tmpfile}" "${@:1}"
status=${PIPESTATUS[0]}
rm -rf "${tmpdir}"
exit ${status}
}
trampoline "${GROOVY_HOME}/bin/groovy" "$@"
!#
println 'aoeu'
Everything past the `!#` should be treated as if it were Groovy but everything prior to that should be treated as if it were shell WRT syntax highlighting. Is there a way to get this to happen or at least tell IntelliJ not to highlight the stuff prior to the `!#`? Not just the highlighting, either, formatting should be bimodal as well.
Everything past the `!#` should be treated as if it were Groovy but everything prior to that should be treated as if it were shell WRT syntax highlighting. Is there a way to get this to happen or at least tell IntelliJ not to highlight the stuff prior to the `!#`? Not just the highlighting, either, formatting should be bimodal as well.
Please sign in to leave a comment.
It's not supported at the moment, slightly related request: https://youtrack.jetbrains.com/issue/WEB-11842 .