How can I get HTML syntax highlighting in my editor for CakePHP?

I use Notepad++ and Aptana for editing my CakePHP code? Is there any way to get basic html syntax highlighting for CakePHP's .ctp template files? It's a lot harder for me without any coloring going on. Any ideas?


<strong>Configuring in Aptana Editor</strong>

Quoted from aptana docs

<ol> <li>From the Window menu, select Preferences..., and then choose General > Editors > File Associations.</li> <li>Add the appropriate file type.</li> <li>Next to the File Types list, click the Add button.</li> <li>In the New File Type pop-up window, type the appropriate file extension (e.g. ".ctp" or ".thtml").</li> <li>Click OK to add the New File Type to the List.</li> <li>Associate the new file type with Aptana.</li> <li>On the File Types list, select the file type that you just added.</li> <li>Next to the Editor Associations list, click the Add button.</li> <li>On the Editor Selection pop-up window, select the editor that you want to associate with your file type.</li> <li>Click OK to add the editor.</li> <li>The new is now associated with the specified file type.</li> <li>Click OK to apply your changes and close the Preferences window.</li> </ol>

<strong>Check out this link</strong>


You probably just have to select Language -> Html in the menu bar. You can set the association in Settings -> Style Configurator -> Html


Settings -> Styler Configurator -> Language: HTML -> User ext: ctp

done :-)


Another little tip that I picked up on.....to get some basic syntax completion in Aptana:

<ol> <li>Right Click on your Projects, Select Properties</li> <li>Goto the "Project Natures" tab and make sure that the PHP component is clicked (If not you will have to click it, close the properties window and reopen it)</li> <li>Next we're going to click on "PHP Buildpath" and select the "External Folders" tab</li> <li>Add the location of a plane jane CakePHP install</li> </ol>

Let Aptana re-profile the project and viola....you have some syntax completion. It's not perfect....but it's better than nothing!


  • Clicking buttons in IE with VBScript on CRA website
  • Why isn't spring using my Converter?
  • Eclipse code fomatting
  • Access 2007 forms with parameterized RecordSource
  • What is wrong with this emulation of CMPXCHG16B instruction?
  • How do I translate LR(1) Parse into a Abstract syntax tree?
  • C#: Import/Export Settings into/from a File
  • Cast between interfaces whose interface signatures are same
  • onBackPressed() not being executed
  • Alert pop up with LWUIT
  • Android fill_parent issue
  • C++ Partial template specialization - design simplification
  • Exchange data b/w iOS devices using Bluetooth 4.0
  • Master page gives error
  • Javascript simulate pressing enter in input box
  • Uncaught Error: Could not find module `ember-load-initializers`
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • How to set/get protobuf's extension field in Go?
  • Sending data from AppleScript to FileMaker records
  • Running a C# exe file
  • Symfony2: How to get request parameter
  • jquery mobile loadPage not working
  • Google cloud sdk not working when python points python3
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • Why winpcap requires both .lib and .dll to run?
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • Load html files in TinyMce
  • Angular 2 constructor injection vs direct access
  • coudnt use logback because of log4j
  • How do I configure my settings file to work with unit tests?
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • Turn off referential integrity in Derby? is it possible?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Add sale price programmatically to product variations
  • Binding checkboxes to object values in AngularJs
  • UserPrincipal.Current returns apppool on IIS
  • Unable to use reactive element in my shiny app
  • How do I use LINQ to get all the Items that have a particular SubItem?