Code with syntax highlighting in a word processor [closed] - syntax-highlighting

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How can I get code with syntax highlighting into a word processor?
It's for a manual that will have code examples which should be able to go from page to page so putting images is not an option.
I'd rather do it with OpenOffice but I could also use iWorks or Office. The code is Ruby, Java, Python and maybe others. I could use TextMate to export it if necessary.

XCode does that already, I think. If you copy out of its window and paste into another app that accepts rich text, the formatting comes along with it. I just made a screenshot:
screenshot http://img710.imageshack.us/img710/8756/xcodetextedit.png

VIM has a syntax hilighing for almost every programming language, and has option to export hilighted source as HTML file that should be easily imported by word processor. Use
:TOhtml

I was able to copy/paste correctly highlighted Java code from Eclipse into Word 2007 and Word 2010 by selecting not the regular Paste, but Paste Special->Rich Text Format.
"Paste Special" is found by clicking the little down arrow under the Paste icon on the Word Ribbon Bar.

See http://www.fauskes.net/nb/syntaxms/

http://www.scintilla.org/SciTE.html

Related

copy file content using terminal [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am looking to copy txt file content to clipboard so that I will be able to paste it somewhere else (using MAC terminal). Normally, I am supposed to select the text content and make a copy. That is not convenient in my case since the content is too large too scrolled all the way down. Is there a Linux shortcut that I can use to copy the content within a single command? I have heard about cat, yet that did not work in my case.
Use pbcopy:
cat myfile.txt | pbcopy
More examples.
On a mac, you can click on the terminal and Cmd-A, or go to Edit->select all, to select everything. Then Cmd-C to copy and Cmd-V to paste.
EDIT: To copy a file, open the file in TextEdit and do as above.
Not sure if its the best option, but you can use:
nano fileName.txt
and then use your mouse (left) to copy partial or entire contents. And then right click and "Copy."
This will work if cat is not working for you.

Suggest a text editor with template engine and code highlighting [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Can someone suggest a text editor with code highlighting and template engine, or maybe a plugin?
I need to edit long html files at my job, but there are a lot of templated actions like:
<p><span style="red">Text</span></p>
I need change to
<h1>Text</h1>
etc...and I want to automate them.
On Windows, one of the best editors is NotePad++ but whether it can handle extremely large files is a question. If you are on Linux (eg: Ubuntu), you may try GEdit for ease of use with some plug-ins but to handle very large files, you're better off with Vim. However, Vim is not as easy to use in terms of keyboard short-cuts.
I often use GEdit on Ubuntu and Windows but for files that are large (eg: 20Mb) It is almost impossible to use this. Here's where Vim scores.
Finally, coming to the 'templating' issue. What you are looking for is a pattern matching and replace function. This is not something that most editors have but I do know that Vim has something down this line but learning to use regular expressions is something you'll need to do before trying such features.
UltraEdit has always been there from the early days, and may be right up your street.

What IDE is this? I've seen it a few times, it's very pretty [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
The image on this site:
https://www.leapmotion.com/developers
What program is that girl using?
It looks like RubyMine to me. The three consecutive end statements towards the bottom of the code base indicate that it's Ruby, and the split-windows along with context-aware inspections on the right-hand side are strong indicators that this is a JetBrains product.
The JVM indicator at the bottom kind of clinches it - it's been consistently present in every JetBrains IDE I've touched.
Since you took the trouble to add a "osx" tag to this, you might be wondering how to do this with Xcode.
And in Xcode preferences, is a "Fonts & Colors" tab which looks like this:
You can change the color scheme of your Xcode IDE really easily to make it as eye catching (or eye insulting) as you prefer.

Who has bought the autocompletion for linqpad? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Who has bought the autcompletion feature for Linqpad ?
I know it's only $ 19 but I'd like to hear from you if it's worth it... Does it have any bugs? Does it really help in speeding up your linq queries development? Is there any limitations or any particular thing you might have found frustating?
Any thoughts are appreciated ....
I just purchased the autocomplete feature in LINQPad, and so far, it has performed exactly as expected, looks and feels very much like Visual Studio (e.g. tab to autocomplete works exactly the same)
It should be noted that the autocomplete only works for use in C# modes, so VB and SQL modes don't benefit from the feature.
Additionally, when using the C# Statements mode, the autocomplete works for objects already declared (any time "." is entered) and it also kicks in for type declarations (i.e. when using the new keyword), but autocompelte does not appear when starting certain statements (e.g. starting a while loop.
To be clear, I've been very pleased with the performance of LINQPad's autocomplete. Remember, when in doubt, press Ctrl+Space!
Just bought the autocomplete version and highly recommend it...I'd like to echo Kit's remark re the .Dump() method....once you see it used a few times, it becomes very useful.
I bought it to support the authors, not really because I needed the feature itself.

How To Format A Block of Code Within a Presentation? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am preparing a presentation using Google Slides, though I can also work on the presentation within Open Office that will include code snippets.
Is there any easy way to perform basic syntax highlighting on the code snippets with either Google Docs or Open Office Presenter?
Edit: Since I believe that I can find a way to embed HTML, any tools that can perform syntax highlighting on HTML would also be welcome suggestions.
An on-line syntax highlighter:
http://hilite.me/
Just copy and paste into your document.
http://www.tohtml.com/ created syntax highlighted HTML code for lots of languages. It might be what you're looking for.
If you're using Visual Studio (this might work in Eclipse also, but I never tried) and you copy & paste into Microsoft Word (or any other microsoft product) it will paste the code in whatever color your IDE had. Then you just need to copy the text out of word and into your desired application and it will paste as rich text.
I've only seen this work across Visual Studio to other Microsoft products though so I don't know if it will be any help.
With the new Add-Ons for Google Drive, you can get code highlighting with the Code Pretty add-on.
I've also thought of this. Finally, my solution is to use github gist. Don't forget it also has highlight functionality. Just copy it. :)
Just a few suggestions:
Screenshots might be an easy way, but you'll have to make sure the code in the image is big enough and clear enough to read. (not the whole screenshot, just the relevant part)
If you can embed html then there are lots of tools to generate syntax highlighted html.
If you write your code in emacs then you might be interested in the htmlize elisp package.
Check out http://codepad.org. It probably won't solve the poster's problem; but, I think it will be of use to others who read this article.

Resources