GithubHelp home page GithubHelp logo

blrbiran / emacs-htmlize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hniksic/emacs-htmlize

0.0 1.0 0.0 174 KB

Convert buffer text and decorations to HTML.

Emacs Lisp 32.48% HTML 67.52%

emacs-htmlize's Introduction

htmlize --- Convert buffer text and decorations to HTML

MELPA

This package converts the buffer text and the associated decorations to HTML. Mail to [email protected] to discuss features and additions. All suggestions are more than welcome.

To use it, just switch to the buffer you want HTML-ized and type M-x htmlize-buffer. You will be switched to a new buffer that contains the resulting HTML code. You can edit and inspect this buffer, or you can just save it with C-x C-w. M-x htmlize-file will find a file, fontify it, and save the HTML version in FILE.html, without any additional intervention. M-x htmlize-many-files allows you to htmlize any number of files in the same manner. M-x htmlize-many-files-dired does the same for files marked in a dired buffer.

htmlize supports three types of HTML output, selected by setting htmlize-output-type: css, inline-css (optimized for code snippets), and font (simpler output, doesn't rely on CSS). See htmlize.el.html for an example of generated HTML.

You can also use htmlize from your Emacs Lisp code. When called non-interactively, htmlize-buffer and htmlize-region will return the resulting HTML buffer, but will not change current buffer or move the point. htmlize will do its best to work on non-windowing Emacs sessions but the result will be limited to colors supported by the terminal.

htmlize aims for compatibility with older Emacs versions. Please let me know if it doesn't work on the version of GNU Emacs that you are using.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.