FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Open a PHP file with JS Editor

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
Arun Kumar
Posted via mailing list.





PostPosted: Mon Jul 06, 2009 1:13 pm    Post subject: Open a PHP file with JS Editor Reply with quote

Hi all,

Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Tue Jul 07, 2009 8:48 am    Post subject: Open a PHP file with JS Editor Reply with quote

Hi,

Dne pondělí 06 července 2009 15:12:53 Arun Kumar napsal(a):
Quote:
I have a PHP file, which is used to generate JS code. Also, this PHP
file will send the Content-Type header as JavaScript, so script tag will
not be there. Most of the file contains JS code. Because <script> tag is
not there in the file, NB is considering the file as a HTML/PHP file and
not highlighting the JS syntax. Is there anyway that I can open this
file(only) in JS editor?

unfortunately this is not possible I guess. The only work around I can think
of right now is to create *.js file and copy its content to that PHP file - yes,
not ideal but should work.

HTH,
Tomas
--
Tomas Mysik
address-removed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB