From 191295b6de2090a5cd8bdddf1825a04cadba6d05 Mon Sep 17 00:00:00 2001 From: Duarte-Frazao Date: Fri, 7 Dec 2018 23:41:51 +0000 Subject: [PATCH] Added array of linesHighlighted to default snippet This makes the default snippet also handle highlight on the lines, because this snippet is created in the code without the normal snippet constructor --- browser/main/Main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/main/Main.js b/browser/main/Main.js index c426f2bd..d13bde0d 100644 --- a/browser/main/Main.js +++ b/browser/main/Main.js @@ -96,12 +96,14 @@ class Main extends React.Component { { name: 'example.html', mode: 'html', - content: "\n\n

Enjoy Boostnote!

\n\n" + content: "\n\n

Enjoy Boostnote!

\n\n", + linesHighlighted:[] }, { name: 'example.js', mode: 'javascript', - content: "var boostnote = document.getElementById('enjoy').innerHTML\n\nconsole.log(boostnote)" + content: "var boostnote = document.getElementById('enjoy').innerHTML\n\nconsole.log(boostnote)", + linesHighlighted:[] } ] })