Repository: brooklyn-ui Updated Branches: refs/heads/master d82eda250 -> b6a2a7028
show tabs in CM editor based on https://codemirror.net/demo/visibletabs.html Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/0d601f5b Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/0d601f5b Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/0d601f5b Branch: refs/heads/master Commit: 0d601f5bc93f1c0b7370739f06a23db33eaea1ea Parents: d82eda2 Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Authored: Fri Aug 12 15:53:45 2016 +0100 Committer: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Committed: Fri Aug 12 15:53:45 2016 +0100 ---------------------------------------------------------------------- src/main/webapp/assets/css/codemirror-brooklyn.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/0d601f5b/src/main/webapp/assets/css/codemirror-brooklyn.css ---------------------------------------------------------------------- diff --git a/src/main/webapp/assets/css/codemirror-brooklyn.css b/src/main/webapp/assets/css/codemirror-brooklyn.css index 65790d8..f52c519 100644 --- a/src/main/webapp/assets/css/codemirror-brooklyn.css +++ b/src/main/webapp/assets/css/codemirror-brooklyn.css @@ -82,4 +82,10 @@ li.CodeMirror-hint-active { top: 50%; transform: translateY(-50%); font-size: 40px; -} \ No newline at end of file +} +/* displays an image for a tab character */ +.cm-tab { + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAMCAYAAAAkuj5RAAAAAXNSR0IArs4c6QAAAGFJREFUSMft1LsRQFAQheHPowAKoACx3IgEKtaEHujDjORSgWTH/ZOdnZOcM/sgk/kFFWY0qV8foQwS4MKBCS3qR6ixBJvElOobYAtivseIE120FaowJPN75GMu8j/LfMwNjh4HUpwg4LUAAAAASUVORK5CYII=); + background-position: right; + background-repeat: no-repeat; +}