diff2html - Pretty diff to html javascript library (diff2html)

  •        482

diff2html generates pretty HTML diffs from git or unified diff output.

https://diff2html.xyz
https://github.com/rtfpessoa/diff2html

Dependencies:

diff : ^3.3.1
hogan.js : ^3.0.2
lodash : ^4.17.4
whatwg-fetch : ^2.0.3

Tags
Implementation
License
Platform

   




Related Projects

vim-fugitive - fugitive.vim: a Git wrapper so awesome, it should be illegal

  •    Vim

View any blob, tree, commit, or tag in the repository with :Gedit (and :Gsplit, :Gvsplit, :Gtabedit, ...). Edit a file in the index and write to it to stage the changes. Use :Gdiff to bring up the staged version of the file side by side with the working tree version and use Vim's diff handling capabilities to stage a subset of the file's changes. :Gblame brings up an interactive vertical split with git blame output. Press enter on a line to edit the commit where the line changed, or o to open it in a split. When you're done, use :Gedit in the historic buffer to go back to the work tree version.

nanohtml - :dragon: HTML template strings for the Browser with support for Server Side Rendering in Node

  •    Javascript

HTML template strings for the Browser with support for Server Side Rendering in Node. By default all content inside template strings is escaped. This is great for strings, but not ideal if you want to insert HTML that's been returned from another function (for example: a markdown renderer). Use nanohtml/raw for to interpolate HTML directly.

php-diff - A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc)

  •    PHP

The logic behind the core of the diff engine (ie, the sequence matcher) is primarily based on the Python difflib package. The reason for doing so is primarily because of its high degree of accuracy. A quick usage example can be found in the example/ directory and under example.php.

vim-better-whitespace - Better whitespace highlighting for Vim

  •    Vim

This plugin causes all trailing whitespace characters (see Supported Whitespace Characters below) to be highlighted. Whitespace for the current line will not be highlighted while in insert mode. It is possible to disable current line highlighting while in other modes as well (see options below). A helper function :StripWhitespace is also provided to make whitespace cleaning painless. Whitespace highlighting is enabled by default, with a highlight color of red.

SyntaxHighlighter - Fully functional self-contained code syntax highlighter developed in JavaScript

  •    Javascript

SyntaxHighlighter is THE client side highlighter for the web and web-apps! It's been around since 2004 and it's used virtually everywhere to seamlessly highlight code for presentation purposes. SyntaxHighlighter is currently used and has been used in the past by Microsoft, Apache, Mozilla, Yahoo, Wordpress, Bug Labs, Freshbooks and many other companies and blogs.


diff-so-fancy - Good-lookin' diffs. Actually… nah… The best-lookin' diffs. :tada:

  •    Perl

diff-so-fancy strives to make your diff's human readable instead of machine readable. This helps improve code quality and help you spot defects faster. Installation is as simple as downloading the diff-so-fancy script to a directory in your path. Windows users may need to install the Windows subsystem for Linux.

eldarion-ajax - a library for adding declarative ajax functionality to your website

  •    Javascript

This is a plugin that Eldarion uses for all of its AJAX work. No more writing the same 20 line $.ajax blocks of Javascript over and over again for each snippet of AJAX that you want to support. Easily extend support on the server side code for this by adding a top-level attribute to the JSON you are already returning called "html" that is the rendered content. Unlike a backbone.js approach to building a web app, eldarion-ajax leverages server side template rendering engines to render and return HTML fragments.

Mergely - Web Application to View and Merge Changes in Documents

  •    Javascript

Mergely is a web application to view and merge changes in documents. Mergely shows you changes to documents side-by-side so you can clearly see what changed from one version to the next. It can be used as a diff tool (read-only) or as both a diff and merge tool for plain text, CSS, HTML, XML, javascript, PHP, C, C++, etc.

CopySourceAsHtml

  •    

CopySourceAsHtml is an add-in for Microsoft Visual Studio 2008 that allows you to copy source code, syntax highlighting, and line numbers as HTML. CSAH uses Visual Studio's syntax highlighting and font and color settings automatically.

CLI11 - CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface

  •    C++

CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface. CLI11 provides all the features you expect in a powerful command line parser, with a beautiful, minimal syntax and no dependencies beyond C++11. It is header only, and comes in a single file form for easy inclusion in projects. It is easy to use for small projects, but powerful enough for complex command line projects, and can be customized for frameworks. It is tested on Travis and AppVeyor, and is being included in the GooFit GPU fitting framework. It was inspired by plumbum.cli for Python. CLI11 has a user friendly introduction in this README, a more in-depth tutorial GitBook, as well as API documentation generated by Travis. See the changelog or GitHub Releases for details for current and past releases. Also see the Version 1.0 post, Version 1.3 post, or Version 1.6 post for more information.

Splash - A fast, lightweight and flexible Swift syntax highlighter for blogs, tools and fun!

  •    Swift

Welcome to Splash - a fast, lightweight and flexible Swift syntax highlighter. It can be used to generate code sample HTML for a blog post, to turn a string of Swift code into a fully syntax highlighted image, or to build custom developer tools. Splash can be used either as a library in your own Swift Package Manager-powered tool or script, or by using one of the three built-in command line tools that act as frontends for the Splash library.

GitDiff - Highlights deltas against git repo in Xcode

  •    Objective-C

To use, clone this project and build target "LNXcodeSupport". You'll need to unsign your Xcode binary for the Xcode side of the plugin to load. The user interface is largely as it was before. Lines that have been changed relative to the repo are highlighted in amber and new lines highlighted in blue. Code lint suggestions are highlighted in dark blue and lines with a recent commit to the repo (the last 7 days by default) are highlighted in light green, fading with time.

SHJS (Syntax Highlighting in JavaScript)

  •    Javascript

SHJS (Syntax Highlighting in JavaScript) is a JavaScript program which highlights source code passages in HTML documents. Documents using SHJS are highlighted on the client side by the web browser.

Dokuwiki - simple to use Wiki

  •    PHP

DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful syntax which makes sure the datafiles remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files – no database is required.

Ohcount - The Ohloh source code line counter

  •    C

Ohcount is a library for counting lines of source code. It was originally developed at Ohloh. It supports multiple languages within a single file: for example, a complex HTML document might include regions of both CSS and JavaScript.

j2objc - A Java to iOS Objective-C translation tool and runtime

  •    Java

J2ObjC is an open-source command-line tool from Google that translates Java source code to Objective-C for the iOS (iPhone/iPad) platform. This tool enables Java source to be part of an iOS application's build, as no editing of the generated files is necessary. The goal is to write an app's non-UI code (such as application logic and data models) in Java, which is then shared by web apps (using GWT), Android apps, and iOS apps.

haml-js - Haml ported to server-side Javascript

  •    Javascript

Ever wanted to use the excellent HAML syntax on a javascript project? Me too, so I made one!. This has most of the same functionality as the traditional haml.Note that this works almost the same as ruby's haml, but doesn't pretty print the html. This would greatly slow down and complicate the code. If you really want pretty printed html, then I suggest writing one using the xml parser library and process the resulting html..

vim-diff-enhanced - Better Diff options for Vim

  •    Vim

This plugin allows you to make use of the Patience diff algorithm for generating diffs to use with Vim. This needs the git command line tool available. You can also customize your setup to use any other tool to generated diffs (e.g. mercurial) Read the help on how to configure the plugin accordingly.

SharePoint 2013 Syntax Highlighting

  •    

This project allows users to apply syntax highlighting to code snippits via the SharePoint 2013 Ribbon UI, with no server side code.

vim-seek - Seek makes navigating long lines effortless, acting like f but taking two characters.

  •    VimL

Seek is a Vim plugin with the simpleminded goal of making long-line navigation effortless, mostly acting like Vim’s f but taking two characters instead. This plugin introduces the seek motion, summoned with s by default. Instead of one character like f, it expects two characters to be typed. This greatly reduces the possible matches within the line and mostly allows you to get anywhere in a line with just three keystrokes. Limiting movement to the current line, much like f does, is a usability consideration, making seek predictable, precise and solving a defined problem: it’s a motion for within the line, not cross-line. If there’s no match, your cursor doesn’t go anywhere. Otherwise, the cursor is left off at the first character typed, so if you seek to “th” your cursor will now be at “t”. The forward seek motion is complemented by S, which seeks backwards.