Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Code section formatting(treat a specific section as javascript ?)
Code section formatting [message #1010802] Mon, 18 February 2013 09:09
klaudyuxxx klaudyuxxx is currently offline klaudyuxxx klaudyuxxxFriend
Messages: 1
Registered: February 2013
Junior Member
Hello!

I started working on an YII project in Eclipse 4.2.1 PDT and want to know how can I tell Eclipse to treat a specific section of code as JS and format it accordingly.
<?php
$scriptToBeInjected = "
                    /*how can I format this section in JavaScript code style?*/ 
                   var someJsVariable = function(){};
                     //some other JS code
                    /*end of JavaScript code style*/ 
                            ";

      registerScript('scriptToBeInjected',$scriptToBeInjected,CClientScript::POS_END);
 ?>


Until now I used Notepad++ to edit my JS code and paste it back in Eclipse, but as the code is getting bigger and bigger, it's getting kinda unproductive.
Previous Topic:Cannot Install in Eclipse 3.8.0
Next Topic:Performance Issue - Very slow editor response
Goto Forum:
  


Current Time: Wed May 08 22:13:20 GMT 2024

Powered by FUDForum. Page generated in 0.03550 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top