Associate .module to .php file?

Syntax highlighting, code folding, brace matching, code indenting, and function list

Associate .module to .php file?

Postby marcusc » Wed Sep 13, 2006 9:13 pm

how I make to associate an archive .module to an archive .php?
User avatar
marcusc
Newbie
 
Posts: 3
Joined: Tue Sep 12, 2006 11:00 pm

Re: Associate .module to .php file?

Postby Mofi » Thu Sep 14, 2006 11:01 am

What are you talking about? Syntax Highlighting? A php file is not an archive!
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Associate .module to .php file?

Postby marcusc » Thu Sep 14, 2006 11:16 am

Yes! The same syntax highlighting of php files.

Thanks!
User avatar
marcusc
Newbie
 
Posts: 3
Joined: Tue Sep 12, 2006 11:00 pm

Re: Associate .module to .php file?

Postby Mofi » Thu Sep 14, 2006 12:32 pm

Click on the button Open at the Configuration - Editor Display - Syntax Highlighting dialog to open your wordfile. Close the configuration dialog with Cancel.

If you use the default wordfile.txt in the UEStudio program directory, scroll down in the wordfile to the line starting with /L3"HTML". At the end of this line you see the file extensions already associated with HTML syntax highlighting. You can add here MODULE without period. But maybe the maximum number of file extension is already used and you have to replace an other extension like PHTML for example with MODULE.

If your .module files contain only PHP and not HTML code, you can assign the extension MODULE also to the line starting with /L8"PHP". Save the wordfile and the .module files should be immediately highlighted with HTML/PHP syntax highlighting.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Associate .module to .php file?

Postby marcusc » Thu Sep 14, 2006 12:51 pm

Thanks for your attention guy!
User avatar
marcusc
Newbie
 
Posts: 3
Joined: Tue Sep 12, 2006 11:00 pm


Return to Syntax Highlighting