Join us to show up for other Firefox users 🦊. Earn fun badges and Mozilla swag vouchers! Find out more: https://mzl.la/askafox150

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How can I set the "View Source" page to show line numbers?

  • 1 reply
  • 16 have this problem
  • 112 views
  • Last reply by the-edmeister
  • Archived

I just want to be able to view the line numbers while viewing the source code from any webpage.

I just want to be able to view the line numbers while viewing the source code from any webpage.

All Replies (1)

Use an external program for View Source, one that has numbered lines as a feature.
You need to set these two hidden preferences:
http://kb.mozillazine.org/View_source.editor.external
http://kb.mozillazine.org/View_source.editor.path