How To : Make Vim Apply C++ Syntax on Arduino Sketch Files ?

How can I make Vim apply C++ syntax highlighting ?

Replies

  • Ankita Katdare
    Ankita Katdare
    Arduino files - .ino or .pde right?

    Add autocmd BufNewFile,BufReadPost *.ino,*.pde set filetype=cpp

    to ~/.vimrc:
    or to ~/.vim/ftdetect/cpp.vim.
  • Abhishek Rawal
    Abhishek Rawal
    Thanks AKD, you just saved my plenty of time.

    One more question,
    Do emacs have syntax highlighting for Arduino sketches ? I mean,can I make it understand that C++ file can be Arduino sketch & vice versa?

    I have too many sketches to be tweaked,merged & to be recompiled !

    If I wanna develop my own Arduino sketch editor which can help to write error free codes & with auto-correct feature with some helpful utilities,How to make one ? Which language is most preferred ?

You are reading an archived discussion.

Related Posts

hay guys i want to make rmi application using netbeans IDE i know all the steps for creating rmi application but dont know how to create stubs and run the...
Could anyone tell me, on what CMS this site is made, Is it made in wordpress, Joomla or some other CMS, and Forum on SMF or some other..?😨
It's no wonder that as we continue to eat up all the fossil fuels, the time has come that we figure out the most efficient ways to tap the solar...
There exist seperate Kernel Thread for corresponding User Thread. I mean Z:Z ratio is maintained ? (or Z:Y ratio maintained as per OS?) Or User Thread gets transformed into Kernel...
So what is to be done with the gear shift of those automatic cars, and what happens in each position ? And as for hybrid cars, how to shift from...