Skip to content

Instantly share code, notes, and snippets.

@njx
njx / resize-widget.html
Created January 10, 2013 00:50
CodeMirror line widget resize bug
<!doctype html>
<html>
<head>
<title>Widget Resize Bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black;}
@njx
njx / horiz-resize-bug.html
Created January 14, 2013 21:09
HTML file that doesn't yet properly reproduce a Brackets bug in CodeMirror.
<!doctype html>
<html>
<head>
<title>Horiz Resize Bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black; width: 200px;}
@njx
njx / widget-nohscroll-bug.html
Created January 24, 2013 21:50
CodeMirror line widget noHScroll bug as of e8c7955. Resize the window small so that the editor starts to resize, then try to scroll horizontally--the line widget scrolls even though noHScroll is set. Reproduced on Mac Chrome.
<!doctype html>
<html>
<head>
<title>NoHScroll Bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black;}
@njx
njx / linked-doc-undo-bug.html
Last active December 13, 2015 19:38
Linked doc undo bug
<!doctype html>
<html>
<head>
<title>Linked Doc Undo Bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black;}
@njx
njx / subdoc-tokenize-bug.html
Created February 15, 2013 22:34
Subdoc tokenize bug
<!doctype html>
<html>
<head>
<title>Subdoc Tokenize Bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<script src="mode/css/css.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
@njx
njx / gist:5266353
Last active December 15, 2015 13:19
<!doctype html>
<html>
<head>
<title>repaint bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black; height: 600px;}
@njx
njx / replace-cursor.html
Created April 2, 2013 17:47
Change in behavior of cursor positioning after replaceRange
<!doctype html>
<html>
<head>
<title>replaceRange Bug</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black;}
@njx
njx / gist:5323236
Created April 5, 2013 22:35
scroll issue (not a CM bug as it turns out)
<!doctype html>
<html>
<head>
<title>Scroller issue</title>
<link rel="stylesheet" href="lib/codemirror.css">
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="doc/docs.css">
<style type="text/css">
.CodeMirror {border: 1px solid black; height: auto;}
@njx
njx / live-html-bug.html
Created September 10, 2013 21:12
LiveHTML bug example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>GETTING STARTED WITH BRACKETS</title>
<meta name="description" content="An interactive getting started guide for Brackets.">
<link rel="stylesheet" href="main.css">
</head>
Resource interpreted as Stylesheet but transferred with MIME type text/plain: "file:///Users/nj/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/src/styles/brackets.less". index.html:39
Resource interpreted as Stylesheet but transferred with MIME type text/plain: "file:///Users/nj/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/src/styles/brackets_shared.less". index.html:49
less: parsed file:///Users/nj/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/src/styles/brackets.less successfully. less-1.4.2.min.js:9
less: css for file:///Users/nj/github/brackets-shell/xcodebuild/Release/Brackets.app/Contents/dev/src/styles/brackets.less generated in 820ms less-1.4.2.min.js:9
less: css generated in 821ms less-1.4.2.min.js:9
Read updated hash: 1391208701000 /Users/nj/Library/Application Support/Brackets/brackets.json File.js:119
Resource interpreted as Font but transferred with MIME type application/octet-stream: "file:///Users/nj/github/brackets-shell/xcodebuil