Set syntax based on file ending, hide page action when you navigate away