I'm using Google Sites to share/store useful code snippets. Can anyone show me how I can make my code snippets look like this ?
I'd check out GeSHi, the Generic Syntax Highlighter. It has pretty good support for Objective C. I don't know if it'll work with Google Sites, though.
Related
Is there a way in VS Code to format code according to the style that a person prefers? I guess there might be a plugin for this sort of thing but I've not found that.
For example, I prefer 'K&R' coding style while a colleague prefers 'Whitesmiths' style. When we share code or functions it would be nice to autoformat code into the style that each prefers.
This does not seem like it should be so difficult for a plugin to do except that coding style also has to parse the language of the code, so Whitesmiths PowerShell is going to be different from Whitesmiths on Perl I would imagine.
Are there any plugins like this (or internal functionality in VS Code - it's a very comprehensive tool without installing any plugins of course!) that people use regularly like this?
In contrast to its name, "JIndent" (commercial) is a tool I've been using for the exact purpose you're asking about.
I'm working with an internally-developed scripting language that some prof and his team have created for an academic project. There's documentation that show function signatures of the existing classes, but for outsiders like me, I'm constantly referring to documentation. Also, in the summer, more helpers will join and I bet they will all suffer from the same problem. So I'd like to write something in Eclipse to help with code hinting and completion, like many languages have.
I haven't programmed eclipse add-ons before, so can someone give me hints how I would generally take the function signatures from their documentation and get code hinting from it. I realize I may need to make changes to the documentation to use it for what I need. But any hints or sample projects would be appreciated. I'm not sure how to get started.
You should have a look at Xtext. With Xtext you can define a domain specific language and generate an editor for it. Here you can find a brief tutorial.
I am searching a syntax highlighter for iphone. I've search in this forum and in google, and I have found several answers, but I can't find the answer that I'm searching.
I want a library or a framework that can be imported to my project that includes syntax highlighting for the more languages possible, but the most important is objective-c. I would prefer if it's not in a UIWebView.
Sorry if the question isn't very exact, I'm pretty new in ios development, ask me by the comments if you need more information.
You may try OkudaKit or UKSyntaxColoredTextDocument.
Not sure if they will compile for iOS, but I think these are your best guesses...
Otherwise, try ParseKit, and do the syntax highlighting part yourself with NSAttributedString.
I'd like to use Easy Google Syntax Highlighter in my wordpress blog. Because often I will paste some java code in my blog. But I don't like the default style of Easy Google Syntax Highlighter, how can I use the eclipse java code style ?
Thanks
I recommend keeping an eye out for a good Pygments plugin for Wordpress.
The following URL is a blog post by Gwynne Raskind talking about a Pygments plugin she's made but has not released yet - it's currently pending clarification on licensing and the post was written just yesterday so it's definitely alive.
http://blog.darkrainfall.org/highlighting-source-code-in-wordpress-with-pygments/
EDIT: I know it's not "eclipse style" but to get Eclipse-style syntax highlighting you'll likely have to rewrite stuff on your own. Since Pygments highlighting is crazy-awesome I thought this might be a good alternative.
ANOTHER EDIT: If you use java, http://www.java2html.de/applet.html might be useful!
You may have to edit the language files, in the /Scripts folder. There appears to be no quick way to 'theme' it though and looking at the files it would be a time consuming process to edit the colors for each language.
I wish to write my own Python IDE (just for the heck of it). I was wondering if I could use Eclipse as a foundation. This will save me from coding a whole lotta things (code editor, intellisense and so on).
To understand what I mean, please take a look at Visual Studio Isolated Shell. I'm essentially looking for something equivalent. Searching on Google hasn't helped. Is there anything like this available in Eclipse's case?
Yes. Eclipse is designed to have additional languages added and there is extensive support for this kind of plugin development. I'm surprised Googling didn't help - there's an entire site dedicated to a tutorial on the basics and a toolkit for developing such things