File name globs that associate files with edit modes can be changed in the Editing pane of the Utilities>Global Options dialog box.

For example, by default files matching "*.inc" are opened in PHP mode, but some Pascal implementations use this extension as well. If you find yourself with an urgent need to hack some Pascal, just remove "irc" from the PHP file name glob to get:

    *.{php3,php4,php,phtml}

And add it to the Pascal file name glob:

    *.{pas,dpr,dpk}