Syntax highlighting for Drupal module files in Notepad++

Code Caravan

Notepad++ does not recognize Drupal module code files (.module) as php source code files, so php syntax highlighting is absent for these files. In this post I will show you how to configure Notepad++ to recognize .module files as php source code files.

Open Notepad++ with root / administrator privileges. This is because the configuration changes will involve indirectly editing Notepad++’s core system files, which require root privileges to edit.

Go to Settings -> Style Configurator.

configuration

From the top portion, of the dialog box, select the theme for which you want to apply your style.

Select php from the language selection pane.

In the lower part of the dialog box is a list of the extensions that this theme recognizes as php source code files. Go ahead and add module as another extension. Save. If any module file is already open in Notepad++, close and reopen it.

Happy coding!

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s