Hi, I've tried to create a heredoc highlight for both Bash and for PHP and for Perl, but no joy. I'm okay with basic Syntax Highlighting but i don't know where to start with this. From what I can muster, it's almost like a multiline comment, syntactically, but i'd like the whole heredoc section to have it's own color.
the syntax is the same for all three languages:
e.g., Bash:
the "_EOF_" in the example above can be any word that's not reserved in the language in which you're coding and can obviously use the underscore character, too.
Any help with this would be MOST APPRECIATED!
Sincerely,
the snakester
P.S. - If it can't be done, just let me know. I'll stop worrying about it. If it were easy, it'd already be included!
the syntax is the same for all three languages:
e.g., Bash:
Code: Select all
cat <<_EOF_
Here is some text. I won't use highlighting for Bash
because if I use a heredoc (which i frequently do for HELP
command line arguments, and I use a contraction, then
the rest of my code is all blue until i happen to use another
contraction or have a single apostrophe lower down in the code.
That is not good.
_EOF_
Any help with this would be MOST APPRECIATED!
Sincerely,
the snakester
P.S. - If it can't be done, just let me know. I'll stop worrying about it. If it were easy, it'd already be included!