Editor Bookmark Syntax
Coda recognizes specially formatted comments in your code as "bookmarks". These bookmarks appear in the Code Navigator pane, and allow you to jump to the corresponsing line of text with a single click.
The bookmark comment syntax varies depending on the syntax mode being used:
- CFML
<!-- !bookmark -->or<!--- !bookmark --->- CSS
/* !bookmark */- ERB
<!-- !bookmark -->- HTML
<!-- !bookmark -->- Java
// !bookmark- JavaScript
/* !bookmark */or// !bookmark- JSP-HTML
<%-- !bookmak -->or<!-- !bookmark -->- LassoScript-HTML
// !bookmark- Perl
# !bookmark- PHP-HTML
/* !bookmark */or// !bookmark- Python
# !bookmark- Ruby
<!-- !bookmark -->- Smarty
<!-- !bookmark -->- SQL
/* !bookmark */- XML
<!-- !bookmark -->
The word "bookmark" in these examples is what will be shown in the Code Navigator to represent the bookmark, and may be changed to any other text. For example, a valid HTML bookmark might be: <!-- !login form starts here -->