News for hackers. Stuff that matters.
Re:The Invisible JavaScript Backdoor by kuon on Thursday November 11, 2021 @12:44PM (#29190757)
Sure:

    fun! HighlightNonAscii()
      if &ft =~ 'markdown\|text'
        return
      endif
      syntax match nonascii "[^\x00-\x7F]"
      highlight nonascii guibg=#ff2232 guifg=#000000
    endfun

    autocmd BufEnter * call HighlightNonAscii()
Your version might depend on your frontend (gui, terminal...). And you might want to filter more file types.

There are no comments on this comment yet.