4 个仓库
Tools that process and style source code directly in the browser for display.
Distinct from Client-Side Directives: Candidates were focused on media processing or storage; this is specifically about code formatting and styling in the browser.
Explore 4 awesome GitHub repositories matching web development · Client-Side Code Formatters. Refine with filters or upvote what's useful.
highlight.js is a JavaScript syntax highlighter and client-side code formatter that transforms plain text source code into highlighted HTML for web display. It provides syntax highlighting across a wide variety of programming languages. The library includes an automatic language detector that identifies the programming language of a code block to apply the correct highlighting rules without manual tagging. It is designed for web worker compatibility, allowing the highlighting process to run in background threads to prevent the browser interface from freezing during the processing of large vol
Processes and styles source code directly in the browser to avoid the need for server-side rendering.
Prism is a JavaScript syntax highlighter and web-based code formatter. It functions as an extensible syntax engine designed to colorize and format code blocks on web pages, making various programming languages easier to read. The project processes raw code strings into styled HTML elements for use in frontend content rendering, technical documentation, and static site generation. It provides a modular system for adding custom language definitions and highlighting rules to a web-based code viewer.
Processes and styles source code directly in the browser for consistent visual presentation.
Code-prettify 是一个基于浏览器的工具和 HTML 语法高亮器,可为网页上的原始代码块添加视觉格式和行号。它作为一个客户端代码格式化程序和用于定义特定语言高亮规则的可定制词法分析器库。 该系统允许创建自定义词法分析器,为专有或不常见的编程语言提供语法高亮。视觉呈现通过自定义代码样式和集成外部 CSS 样式表来定义颜色和字体进行管理。 该项目为嵌入在 HTML 中的源代码片段提供自动语法高亮和顺序行号。它支持添加自定义语言支持以及技术文档的样式设置。
Functions as a browser-based tool that adds line numbers and visual formatting to raw code blocks.
Syntaxhighlighter 是一个基于 JavaScript 的前端库,用于在网页上渲染可读的源代码。它作为一个客户端语法高亮器,在浏览器内为纯文本代码块应用特定语言的颜色和格式。 该库允许生成针对特定项目需求定制的最小化语言刷(language brushes)和视觉主题分发包。这使得能够创建仅包含所需脚本和样式表的自定义构建。 该系统处理基于 Web 的文档的源代码高亮显示,并支持自定义资产打包以减小最终有效载荷大小。
Provides client-side processing and styling of source code directly in the browser for display.