elvirbrk / NoteHighlight2016

Source code syntax highlighting for OneNote 2016 and OneNote for O365 . NoteHighlight 2013 port for OneNote 2016 (32-bit and 64-bit)
GNU General Public License v2.0
3.79k stars 393 forks source link

Formating json using JS is not working #96

Open yoozek opened 4 years ago

yoozek commented 4 years ago

Can't format json text using JS highlighter

obraz

Exception from InsertHighLightCodeToCurrentSide: System.FormatException: Input string was not in a correct format.

   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Double.Parse(String s, IFormatProvider provider)
   at NoteHighlightAddin.AddIn.<>c__DisplayClass27_0.InsertHighLightCodeToCurrentSide>b__0(XElement n)
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at NoteHighlightAddin.AddIn.InsertHighLightCodeToCurrentSide(String fileName, String pageXml, HighLightParameter parameters, XElement outline, Boolean selectedTextFormated)