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.
Related
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 8 years ago.
Improve this question
In e.g. the question Is there a Pattern Matching Utility like GREP in Windows?, one can find a few options for adding a grep utility to windows. But I am wondering why it's the case that there is no built-in grep-like function in Windows, as this seems to be a supremely useful thing (at least to a Linux user).
More specifically, is there a technical reason for this? E.g. does the difference in OS/filesystem architecture between Windows and Linux make it more difficult/slow/pointless/unsafe/etc. to have such functionality in Windows?
(I can imagine for example that an antivirus might not like for a program to read thousands of files in one go, and because of that microsoft perhaps decided to scrap a grep utility. That's of course pure speculation on my behalf, but it's the kind of answer I'm looking for)
"Grep" is an unix tool - it was originally made for unix.
As far as the functionality goes, we have built-in "grep". Windows offers something similiar through commands find and findstr, which do quite a lot, and have been available for long time.
Plus, you can search file content through windows search.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Tagged PDFs allow for the easy reflow and accessibility of PDFs. It seems like this would be a natural use case for using LaTeX, which advocates content over style. But as far as I can tell, there is no way to create a tagged PDF with MikTeX 2.8.
Does anybody know of any tips, tricks or techniques to get a tagged PDF through LaTeX without resort to the commercial version of Adobe Acrobat?
Hmm, well, yes, sort of.
There isn't really sophisticated support for tagging, and what there is, is implemented in pdftex/luatex. Support for bookmarks and in-document cross-references is done using tagging. There's also been some more sophisticated work shown at TUG conferences, but this is all in the pipeline for now.
Context/luatex has better support that Latex for this sort of thing: there's some support for interactive documents using Context's layers, where the contents of the layers change when buttons are clicked in the PDF. I think this must be done using tagging.
I've never heard of anything like embedded forms, digital signing, or embedding the Latex/Tex/Context source in the resulting PDF, but in principle this is all possible.
I've the same question with pdfLatex in general and found this:
http://sarovar.org/tracker/index.php?func=detail&aid=945&group_id=106&atid=495
But I don't test it till now.
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
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.
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.