افزونه‌های مرورگر فایرفاکس
  • افزونه‌ها
  • پوسته‌ها
    • برای فایرفاکس
    • واژه‌نامه‌ها و بسته‌های زبان
ورود
پیش‌نمایش Enlight

Enlight Qeole توسط

Syntax highlight for raw source code.

4.6 (۱۷ بررسی)4.6 (۱۷ بررسی)
۲۳۳ کاربر۲۳۳ کاربر
فایرفاکس را دریافت کنید و افزونه را بگیرید
دریافت فایل

فرادادهٔ افزونه

تصاویر صفحه
Language selection panelHighlighted code (language: diff, style: Solarized - dark)Add-on manager: color scheme selection menuAdd-on manager: selection of languages to use in pop-up and for autodetection
دربارهٔ این افزونه
Provides syntax highlighting for raw source code displayed in current tab.

To activate, click on the add-on button in Firefox toolbar, and select the language syntax you want to use (or Auto-detect for automatic detection). You can also select the color theme to use, or enable line numbering, in the add-on preferences.

When line numbering is activated, you can jump to a line of the file (e.g. line 27) by adding “#l27” at the end of the URL and then reloading the page (hitting “Enter” after URL change is not enough to trigger the jump).

Syntax highlighting by itself relies on highlight.js project (see https://highlightjs.org). Currently packaged is the version 11.0.1 of highlight.js, which provides 242 color themes and syntax for 196 programming languages.
نظرات توسعه‌دهنده
Embeds a package version of highlight.js bundle. You can get the same at https://highlightjs.org/download/.

Technically, the internal functioning is as follows: when one selects a language in the panel, the add-on looks for code between <pre></pre> tags in current tab and inserts it in a <code></code> block. It also add a (local) link to CSS stylesheet corresponding to the color theme to use. Then the script provided by highlight.js project is called and does the hard work for us. Original content of the document is backed up in a hidden <div> for later restoring.
This works well on raw text file containing source code, as Firefox automatically embeds it between <pre></pre> tags (to preserve spacing and line breaks) before display.

If you want to help them parsing languages, highlight.js is on GitHub.

If you have improvements for the add-on itself, feel free to file an issue or to submit a pull request on the add-on repo.
امتیاز ۴٫۶ توسط ۱۷ بررسی‌کننده
وارد شوید تا به این افزونه امتیاز دهید
هنوز هیچ امتیازی ثبت نشده است

امتیاز ستاره‌ای ذخیره شد

۵
۱۲
۴
۴
۳
۱
۲
۰
۱
۰
تمام ۱۷ بررسی را بخوانید
دسترسی‌ها و داده‌ها

دسترسی‌های الزامی:

  • دسترسی به زبانه‌های مرورگر
  • دسترسی به داده‌های شما در همهٔ وب‌سایت‌ها
اطلاعات بیشتر
اطلاعات بیشتر
پیوند‌های افزونه
  • صفحه نخست
  • سایت پشتیبانی
  • کپی شناسه افزونه
نسخه
2.7.11.0
اندازه
۷۰۷٫۸۱ کیلوبایت
آخرین به‌روزرسانی
۵ سال پیش (۱۷ ژوئن ۲۰۲۱)
دسته‌بندی‌های مرتبط
  • Appearance
مجوز
مجوز عمومی موزیلا ۲.۰ (MPL 2.0)
تاریخچهٔ نسخه‌ها
  • نمایش همه نسخه‌ها
افزودن به مجموعه
گزارش این افزونه
رفتن به صفحه اصلی موزیلا

افزونه‌ها

  • درباره
  • وبلاگ افزونه‌های فایرفاکس
  • کارگاه افزونه
  • مرکز توسعه‌دهندگان
  • سیاست‌های توسعه‌دهنده
  • وبلاگ انجمن
  • انجمن
  • گزارش خطا
  • راهنمای بررسی

بارگیری

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

آخرین نسخه‌های ساخت

  • Nightly
  • Beta

فایرفاکس برای کسب‌وکار

  • Enterprise

انجمن

  • Connect
  • Contribute
  • Developer

دنبال کردن

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • حریم‌خصوصی
  • کوکی‌ها
  • حقوقی

غیر از مواردی که مشخص شده، محتوای این سایت تحت گواهینامه Creative Commons Attribution Share-Alike License v3.0 یا هر نسخه بعدی خواهد بود.