source code

srcDiff

Original

        
Modified

        
srcDiff View Unified ViewSide-by-Side View

        
        
deleted inserted moved

Playground Help

srcDiff differences the original and modified sources syntactically, based on their srcML, as you type.

URL Help

The inputs of the playground can be given as parameters in the query (after the ?) or the hash (after the #) of its URL.

ParameterInputExample
languageSource language: ?language=Java
original, modifiedSource code as text?language=C%2B%2B&original=int%20n%20%3D%201%3B%0A&modified=int%20n%20%3D%202%3B%0A
zBoth sources as made by Copy Link
originalUrl, modifiedUrlSource files at URLs (must allow cross-origin requests (CORS))
originalFilename, modifiedFilenameFilenames in the srcDiff
exampleOne of the examples: ?example=nest
viewOutput view: (one of) srcdiff, unified, or side-by-side?view=unified
stringSplittingString splitting: 1 or 0
positionsPosition attributes: 1 or 0
ignoreWhitespace, ignoreAllWhitespace, ignoreCommentsView options: 1 or 0
contextUnified view context: a number of lines, function, or all?view=unified&context=function
splitWidth of the source panes in percent, 20 to 80?split=30
panelSidebar panel: examples, open, save, share, settings, or none?panel=examples
fullPageUse the whole window: 1 or 0?fullPage=1