Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Add a temporary bookmark to code

You can use the Code View toolbar or the Code View submenu on the Edit menu to temporarily bookmark particular locations in the code of a web page so that you can quickly return to those locations when you want to. Unlike HTML anchors (bookmarks) that a hyperlink can point to, code bookmarks only work in the Code view of a page while your web page is open in Microsoft Expression Web. When you close a web page, Expression Web deletes all code bookmarks from that page.

To help you identify code bookmarks, a colored rectangle with rounded edges appears to the left of each line of code that contains a code bookmark. You can change the color of that icon by using the Color Coding settings in the Page Editor Options dialog box. To see code bookmark icons in Code view, the Line numbers option must be selected on the General tab in the Page Editor Options dialog box. You can still add, remove, and navigate code bookmarks when the Line numbers option is cleared and the code bookmark icons are hidden.

Cc295502.alert_tip(en-us,Expression.10).gifTip:

Many features and commands you can use in the Code view of a page have keyboard shortcuts. For more information, see the section entitled "Code view shortcuts" in Keyboard shortcuts.

To add or remove a code bookmark

  • In Code view, place your cursor in the line where you want to add or remove a code bookmark and do one of the following:

    • On the Edit menu, point to Code View, and click Toggle Bookmark.

    • In the Code View toolbar, click the Toggle Bookmark button Cc295502.fac176f6-a816-4b00-95ff-2c52d2de941a(en-us,Expression.10).gif.

To remove all code bookmarks in a page

  • In Code view, do one of the following:

    • On the Edit menu, point to Code View, and click Clear Bookmarks.

    • In the Code View toolbar, click the Clear Bookmarks button Cc295502.a684d5d8-18c5-4ee6-9589-4d4691cf642b(en-us,Expression.10).gif.

To navigate code bookmarks

  • In Code view, do one of the following:

    • On the Edit menu, point to Code View, and select Next Bookmark or Previous Bookmark.

    • In the Code View toolbar, click the Next Bookmark button Cc295502.801cfe2f-12c9-4680-b630-6286301fc8da(en-us,Expression.10).gif or the Previous Bookmark button Cc295502.4f23f70a-7053-45d9-a2cc-134b6423023d(en-us,Expression.10).gif.

To change the color of code bookmark icons

  1. On the Tools menu, click Page Editor Options.

  2. In the Page Editor Options dialog box, on the Color Coding tab, do the following:

    Use this

    To do this

    Code view settings

    Select to switch to code view settings.

    Display items

    Select Bookmarks.

    Item foreground

    Select a color.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.