Re: Re: Make eclipse-php recognise custom extension as php ?
| From: | Tijnema ! | Date: | Fri, 27 Apr 2007 22:44:36 +0000 |
| Subject: | Re: Re: Make eclipse-php recognise custom extension as php ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254041@lists.php.net to get a copy of this message | ||
On 4/27/07, Don Don <progwihz@yahoo.com> wrote:
Hi Roberto, i tried out your tip, it does work but it looses the syntax highlighting functionality. Is there anyway I can make the new extension open up its contents with syntax and other php oriented functionalities ? CheersI have no knowledge of Eclipse, but it seems a stupid program, it should color highlight based on the typed code, so if there is <?php ..... ?> in a page, that it performs PHP highlighting on it. Did you see if there's a way to manually select which color highlighting to use? It's possible in programs like KDevelop. Tijnema
Roberto Mansfield <robertom@sas.upenn.edu> wrote: Don Don wrote: Hi all, i've changed my server's apache config to recognize my custom extension for php files. And all my development filenames now come with this new extension. However my IDE (Php Eclipse) will not recognise this new extension as a php file, even though it opens it up but it looses all the php features (e.g. syntax highlighting, flags, errors, warnning, intellisence etc) How can i make php-eclipse recognise my new custom extension as a php file ? I believe what you want to do is setup a file association in your preferences. Give this a try: Open Window->Preferences. Under General->Editors->File Associations, add your new file extension. Highlight the new extension and use the Associated Editors box below to tie the extension to the PHP editor. Good luck, Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos.