10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Navigating to a Specific Line<br />

NAVIGATION<br />

To view and place the cursor on a specific line number, from the main menu, click Search > Go to Line.<br />

Enter the line number and click OK. Alternatively, you can use the goto_line command in the syntax<br />

goto_line linenumber.<br />

Navigating to an Offset<br />

To seek to a byte offset in the current buffer, from the main menu click Search > Go to Offset, or use the<br />

gui_seek command. This function is the same as the C lseek function. However, if you have opened the<br />

file with tab expansion, the seek position on disk may be different.<br />

When the Seek dialog appears, enter the position to seek for. You may specify a C syntax expression. In<br />

addition, you may prefix the expression with a plus or minus sign (+ or -) to specify a relative seek position.<br />

Some examples are:<br />

• 0x10+10 - Seek to offset 26<br />

• +8+4 - Seek to current offset + 12<br />

• -8+4 - Seek to current offset - 12<br />

Select the Decimal option to enter the seek position in decimal number format. Select the Hex option to<br />

enter the seek position in hexadecimal number format. You can type an “x” as the first character in the<br />

Position to seek for text box and this option will automatically be selected.<br />

Navigating to URLs<br />

<strong>SlickEdit</strong>® treats URLs in editor windows as hyperlinks, making them easy to identify and open in a Web<br />

browser from within your code. By default, a string is interpreted as a URL if it begins with one of the<br />

following URI schemes, or, URL types (including the colon and slashes):<br />

• file://<br />

• ftp://<br />

• http://<br />

• https://<br />

URLs are underlined. You can navigate to a link by hovering over it with the mouse and using Ctrl+Click<br />

(or Command+Click on the Mac). The link opens in a new Web browser window, or the current browser<br />

window if one is already open. The file:// URI scheme is handled differently—see Handling File URLS<br />

below.<br />

When using the mouse to hover over an http:// link, click the green arrow to open the source code in<br />

<strong>SlickEdit</strong>.<br />

The URI Schemes node of the Options dialog lets you specify the recognized URI schemes, and makes it<br />

easy to extend this feature. For example, you may want to add a mailto URI scheme so that e-mail URLs<br />

are recognized. To access these options, from the main menu, click Tools > Options, expand Network &<br />

Internet Options, then select URI Schemes. See URI Scheme Options for more information.<br />

<strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong> 197

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!