Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 538
patricksweeney Avatar asked Dec 08 '25 12:12

patricksweeney


2 Answers

Configuring in Aptana Editor

Quoted from aptana docs

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

Check out this link

like image 132
Webrsk Avatar answered Dec 10 '25 02:12

Webrsk


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

like image 24
Valentin Jacquemin Avatar answered Dec 10 '25 00:12

Valentin Jacquemin