🐛 Site > Viewer > Coloration > Fix format

This commit is contained in:
brunosimon
2017-08-29 19:11:08 +01:00
parent 2429e275ea
commit 2530f6ba5a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -13,6 +13,11 @@ export default
computed:
{
extension()
{
return this.$store.state.files.current.data.extension
},
version()
{
return this.$store.state.files.currentVersion
+1 -1
View File
@@ -1,5 +1,5 @@
<div class="viewer" v-if="version">
<pre v-highlightjs="version.content" contenteditable @keydown="onCodeKeyDown($event)"><code></code></pre>
<pre v-highlightjs="version.content" contenteditable @keydown="onCodeKeyDown($event)"><code :class="[ extension ]"></code></pre>
<div class="lines">
<div class="line" v-for="i in linesCount">{{ i }}</div>
</div>