Firefox 브라우저 부가 기능
  • 확장 기능
  • 테마
    • Firefox용
    • 사전 및 언어 팩
    • 다른 브라우저 사이트
    • Android 부가 기능
로그인
Enlight 미리보기

Enlight 제작자: Qeole

Syntax highlight for raw source code.

4.6 (리뷰 17개)4.6 (리뷰 17개)
사용자 243명사용자 243명
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.
17명이 4.6점으로 평가함
로그인하여 이 확장 기능의 평점을 남겨주세요
아직 평점이 없습니다

별점 저장됨

5
12
4
4
3
1
2
0
1
0
리뷰 17개 모두 읽기
권한 및 데이터

필수 권한:

  • 브라우저 탭에 접근
  • 모든 웹사이트에서 사용자의 데이터에 접근
더 알아보기
추가 정보
부가 기능 링크
  • 홈 페이지
  • 지원 사이트
  • Copy add-on ID
버전
2.7.11.0
크기
707.81 KB
마지막 업데이트
5년 전 (2021년 6월 17일)
관련 카테고리
  • 외양
라이선스
Mozilla Public License 2.0
버전 목록
  • 모든 버전 보기
모음집에 추가
이 부가 기능 신고
Mozilla 홈페이지로 이동

부가 기능

  • 소개
  • Firefox 부가 기능 블로그
  • 확장 기능 워크샵
  • 개발자 허브
  • 개발자 정책
  • 커뮤니티 블로그
  • 포럼
  • 버그 신고
  • 리뷰 지침

브라우저

  • Desktop
  • Mobile
  • Enterprise

제품

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 개인 정보
  • 쿠키
  • 법률

특별한 고지가 없는 한, 본 사이트의 콘텐츠는 Commons Attribution Share-Alike License v3.0 또는 그 이후 버전에 따라 사용이 허가됩니다.