logo elektroda
logo elektroda
X
logo elektroda

Preserve Arduino Code Syntax & Formatting: Copying from Atom to Word with Colors & Indentation

karol_cpp 12243 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16205455
    karol_cpp
    Level 10  
    I would like to copy the source code into Word preserving the syntax.
    Don't ask why.
    Ideally, it would be possible to copy the code from Atom to Word as it is in this program, keeping colors, indentation, and line numbering.
    There may be another way not necessarily with this program. But the syntax should be preserved.

    The code is written under arduino. I like the objective-C ++ syntax about Atom. Syntex in this forum doesn't have a satisfactory syntax, objectice-C doesn't have any distinctive commands like pinMode etc.

    If you can't use Atom then maybe some other editor / syntax.
    At least, it's mainly about copying itself. How to do it?
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 16205601
    JRV
    VBA, Excel specialist
    In extreme cases, edit and insert screen photo
  • ADVERTISEMENT
  • #3 16205832
    karol_cpp
    Level 10  
    I would prefer it to be text.
    Let's skip this particular syntax.
    How to copy the code from other editors / syntaxes, e.g. from this forum, keeping any syntax?
  • #4 16208535
    karol_cpp
    Level 10  
    I found it, if someone was looking, I was inserting several pages.

    https://tohtml.com/
    http://hilite.me/
    http://highlight.hohli.com/
    http://www.planetb.ca/syntax-highlight-word

    Maybe there is no syntax for Arduino, but the pages will definitely be useful.
    The second link says it prompts objective-J, which is language similar to objective-c with javascript highlighting.
    It is the most suitable syntax for Arduino - it has its own created functions and every command built by arduino (eg pinMode, analogWrite etc).

    Maybe someone will need it in the future.
ADVERTISEMENT