You've made transition from GUI text editors to a terminal text editor so easy!
Zachary Yedidia
@zyedidia
I'm glad! The javascript syntax highlighting is fairly primitive and doesn't have support for embedded html like that. It might be worth opening an issue to see if other people have solutions for this.
The code runs without any issues. It's not pure javascript, it's javascript+reactjs. The html-like code you are seeing is JSX and it works perfectly fine with react
Zachary Yedidia
@zyedidia
Yeah unfortunately micro doesn't have good syntax highlighting support for jsx/non-standard javascript.
completely ignoring JSX code would be a good-enough solution for me
_
Zachary Yedidia
@zyedidia
To disable syntax highlighting you can turn the syntax option off. In ~/.config/micro/settings.json you could make a local option that disables syntax highlighting for *.js files (see the section "Global and local settings" in > help options).
:point_up: Edit: Hello, I enjoy using the Micro text editor, but, unfortunately, I know neither Go or Lua. Is this the right place to request features/report bugs?
is it possible word/character/line count to constantly appear at the bar instead of having to ctrl+e & "wc" every time I'm interested in word/character/line count?
Hi, how do I get my delete key to work like a delete key instead of duplicating the current line? I tried binding Delete to Delete and that didn't work. I tried binding Delete to UnbindKey and that didn't work either and gave me an error saying the action doesn't exist. Thanks!
Zachary Yedidia
@zyedidia
@lrapava You could probably implement wc as a function that returns the number of words/characters/lines and then use that in your statusformat. Take a look at the wc plugin implementation if you want. As a word of caution, the statusline is updated every redraw so this probably wouldn't be especially efficient (if you are using large files).
@selfagency By default Ctrl-d is bound to duplicate line, and the delete key is bound to the Delete action. What key are you pressing? If you run > raw and then press the key, what event does micro say it is receiving from the terminal?