Πρόσθετα προγράμματος περιήγησης Firefox
  • Επεκτάσεις
  • Θέματα
    • για το Firefox
    • Λεξικά και πακέτα γλωσσών
    • Άλλα προγράμματα περιήγησης
    • Πρόσθετα για Android
Σύνδεση
Προεπισκόπηση του Enlight

Enlight από Qeole

Syntax highlight for raw source code.

4.6 (17 reviews)4.6 (17 reviews)
257 χρήστες257 χρήστες
Θα χρειαστείτε το Firefox για να χρησιμοποιήσετε αυτήν την επέκταση
Λήψη Firefox και απόκτηση επέκτασης
Λήψη αρχείου

Μεταδεδομένα επέκτασης

Στιγμιότυπα
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.
Βαθμολογήθηκε με 4,6 από 17 αξιολογητές
Συνδεθείτε για βαθμολόγηση της επέκτασης
Δεν υπάρχουν ακόμη βαθμολογίες

Η βαθμολογία αστεριών αποθηκεύτηκε

5
12
4
4
3
1
2
0
1
0
Ανάγνωση και των 17 κριτικών
Δικαιώματα και δεδομέναΜάθετε περισσότερα

Απαιτούμενα δικαιώματα:

  • Έχει πρόσβαση στις καρτέλες περιήγησης
  • Έχει πρόσβαση στα δεδομένα σας για κάθε ιστότοπο
Περισσότερες πληροφορίες
Σύνδεσμοι προσθέτου
  • Αρχική σελίδα
  • Ιστότοπος υποστήριξης
Έκδοση
2.7.11.0
Μέγεθος
707,81 KB
Τελευταία ενημέρωση
4 χρόνια πριν (17 Ιουν 2021)
Σχετικές κατηγορίες
  • Εμφάνιση
Άδεια
Mozilla Public License 2.0
Ιστορικό εκδόσεων
  • Προβολή όλων των εκδόσεων
Προσθήκη σε συλλογή
Αναφορά προσθέτου
Σημειώσεις έκδοσης του 2.7.11.0
Features

- Improved the aspect of the preferences page

Highlight.js

- Switch to v11.0.1: Support for new languages and new themes (see highlight.js changelog for details)
- The default set of language for autodetection has got new entries (to reflect the list of “common” languages as per the download page on highlight.js website)

Bug fixes

- Fix race condition between language list generation, and activation of the checkboxes, in the preferences page
- Suppress a warning in the console that was due to closing the popup too early
- Remove useless debug messages

Misc

- Add a Makefile to help with compiling, checking, running the add-on
- Build the embedded library from its sources, and to do so, add highlight.js as a Git submodule
- Use a linter (ESLint)
- Code clean-up
Περισσότερες επεκτάσεις από Qeole
  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

  • Δεν υπάρχουν ακόμη βαθμολογίες

Μετάβαση στην αρχική σελίδα της Mozilla

Πρόσθετα

  • Σχετικά
  • Blog προσθέτων Firefox
  • Εργαστήριο επεκτάσεων
  • Κέντρο προγραμματιστών
  • Πολιτικές προγραμματιστών
  • Blog κοινότητας
  • Φόρουμ
  • Αναφορά σφάλματος
  • Οδηγίες κριτικής

Προγράμματα περιήγησης

  • Desktop
  • Mobile
  • Enterprise

Προϊόντα

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Απόρρητο
  • Cookie
  • Νομικά

Εκτός από τα μέρη όπου αναφέρεται διαφορετικά, το περιεχόμενο του ιστοτόπου υπόκειται στην άδεια Creative Commons Attribution Share-Alike License v3.0 ή τυχόν νεότερες εκδόσεις.