Skip to main content
Show line numbers

Learn how to enable line numbers for the pages of your Coda doc

Updated over 3 months ago

Line numbers - or block numbers - allow you to identify specific sequences of text or other objects on the page of a Coda doc. When line numbers are shown, you can more easily reference exact places on a page, thus keeping your team and collaborators aligned.

While Coda defaults to hiding line numbers, you can quickly change this setting to show the line numbers on specific pages, or on all pages in your doc. Once line numbers are turned on, you will see a number for each distinct block or each new line break on the page.

Within this article, you'll find...


Show line numbers on a single page

To turn on line numbers for a specific page in your doc, just follow these steps:

  1. In the upper right corner of the doc, click on the gear icon

  2. Select Page options

  3. In the list of page options, find and toggle on Line numbers

That's it! You will now see line numbers appear on that specific page. These line numbers will be visible by everyone who views the page - not just by yourself. To turn on line numbers for all other pages, check out the next section.

Turn on line numbers for all pages

To turn on line numbers for all pages in a doc, follow the steps below:

  1. Click on the gear icon in the upper right corner of the doc

  2. Select Page options

  3. Click into the New pages tab of the page options

  4. Find Line numbers in the list of options:

    1. To turn on line numbers for all future pages in this doc, switch on the toggle.

    2. To turn on line numbers for all existing pages, click the page icon next to the toggle. You will then see a confirmation dialog. Click Apply to confirm.

Page numbers will now be visible to all doc viewers on all pages of the doc.

FAQs

What qualifies as a new line on a page?

In Coda, a new line starts every time there is a line break. For instance, if you press Enter on your keyboard, this will create a new line break (and the next line number). But if you press Shift+Enter, this is not considered a new line break (and therefore will not start a new line number).

Is there a way to turn on line numbers for all docs at once?

At this time, there isn't any way to turn on line numbers for all docs at once. You will have to turn on line numbers for docs one by one.

Can I copy and share links to specific line numbers?

Yes - you can easily copy the link to a specific line number, then share this link with others. When they click the link, they will be brought to that specific line number on the page.

To copy a line number, just hover next to the number on the page, click the three vertical dots that appear, and select Copy link.


Related resources

Did this answer your question?