Syntax Highlighting in Adobe InDesign

2

Is there a way to get syntax highlighting for Ruby into InDesign? I found a few examples for how this might work with GREP and HTML, but for any other language you had to define every element yourself (which of course is slower than simply defining text colours from within the application).

Severin

Posted 2013-12-03T12:16:13.927

Reputation: 173

Removed the recommendation question as that (IMO) makes it off topic. Feel free to disagree and roll it back. – Dave – 2013-12-03T13:34:04.870

Answers

1

There is a workaround thats working with most text editing tools if you use Github. If you copy/paste your code from their web view into your application it will keep the syntax highlighting. Not the most elegant solution, but a quick one that works in a lot of cases.

Severin

Posted 2013-12-03T12:16:13.927

Reputation: 173

It's important to realize that Indesign isn't a text editing tool. When you copy and paste from Github, only the text gets pasted. When I pasted into Word, none of the formatting gets transferred there either. You can import RTF files into InDesign, but Github doesn't export RTF files AFAIK. – Rick Henderson – 2016-06-20T18:29:27.703

Doesnt' work :/ – Totty.js – 2014-05-16T16:18:41.410

In the settings you can choose if you wan't to keep the formatting of text you "import". Make sure that feature is enabled! – Severin – 2014-05-16T16:48:27.157