Is there a way to change how Rapid PHP 2011 treats files?

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
icamadmin
Posts: 4
Joined: Sat Aug 04, 2012 1:20 am

Is there a way to change how Rapid PHP 2011 treats files?

Post by icamadmin »

Is it possible to to force Rapid PHP 2011 to treate a .html file as if it were a php file?

I'm using ExpressionEngine 2 which now saves php files with .html extension and the syntax coloring gets borked in Rapid PHP if there is PHP in a .html file.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Is there a way to change how Rapid PHP 2011 treats files

Post by Aivars »

If you're OK with all html files being highlighted as php files, you can go to Options -> Preferences -> Document Types and remove html from HTML extensions and add it to PHP extensions instead.
Blumentals Software Programmer
mithcd
Posts: 47
Joined: Sun Jul 01, 2012 6:30 pm

Re: Is there a way to change how Rapid PHP 2011 treats files

Post by mithcd »

So this is possible here? Not really sure but what would be the negative effects?
When in doubt, use Brute Force Image
icamadmin
Posts: 4
Joined: Sat Aug 04, 2012 1:20 am

Re: Is there a way to change how Rapid PHP 2011 treats files

Post by icamadmin »

Aivars wrote:If you're OK with all html files being highlighted as php files, you can go to Options -> Preferences -> Document Types and remove html from HTML extensions and add it to PHP extensions instead.
Perfect! That did exactly what I wanted. Thank you!
Post Reply