I have a bash shell script that has a fairly sizable amount of perl code in it. Is there a why to get perl syntax highlighting instead of the normal here doc coloring? Thank you for any help, I'm new to emacs and still getting the hang of elisp and the terminology
You can just M-x
perl-mode to activate perl mode.
Or, set a easy key to perl-mode. For example,
(global-set-key (kbd "<f8>") 'perl-mode)
Or, you can put add this comment to the first line in the bash file
# -*- mode: perl -*-
then, it'll open with perl mode.
Or, you can put the following at the bottom
# Local Variables: # eval: (perl-mode 1) # End:
Does that answer your question?