What you need(imho) is the pretty-format option for xml files.
This auto aligns your xml code, but firstly make sure the source file isn't malformed(missing tags, non-escaping characters etc...), so you will also need an XML validator for that.
Both options are covered by XMLTools.
So after you install it, Check XML syntax now to verify that your xml is ...
I've found SwiftLint and Tailor, which both enforce Swift style and convention best practices.
Both can be run from the command line as an external tool, or integrated with Xcode.
Both are well-maintained and Tailor is cross-platform. Both have customizable rules engines.
Tailor looks more "official," with a more stable dev team, but it's hard to say ...
Atom.io is another text tool with beautification functionality tools available. The package I linked will format about a dozen languages out of the box. Others can be added through separate configuration files (if atom-beautify doesn't know how to beautify the language you're working in, it will tell you were you can find download the needed configuration ...
I like the SublimeAStyleFormatter plugin for Sublime Text. It works with C/C++/C#/Java source code files.
There are a couple methods you can use to install it (all of which are detailed in the readme) but I recommend the Package Control method as very easy.
There are quite a few options. You'd probably be most interested in:
and there ...
I've tried different solutions, from regular expressions in Sublime Text to
I like the SQLBeautifier plugin for SublimeText. SublimeText is cross-platform (Windows, Linux, and OSX) and has a free trial with unlimited functionality. The plugin itself is free and open source (MIT Licensed). Installation is quite simple - just run installer for SublimeText, open SublimeText and install Package Control, then in Sublime Text type ctrl-...
Popular free open-source PMD code analyzer has a copy-paste detector CPD - it can find similar code fragments which are good candidates to "extract method" refactoring. It is cross-platform and can be run in any system that have JRE implemented. It also have a vast variety of plugins for popular build tools and IDEs like maven, eclipse, ant, etc.
C# Formatter Online
Input C# code and copy/paste c# beautified code.
Download .cs beautified version.
Only two options for formatting fonts: small and big.
K&R bracing, which is not usual C# formatting.
SynWrite, free and open-source. It has HTML beautify, call menu item HTML → HTML Tidy → Tidy - reformat only.
Other HTML items in Tidy menu - for different tasks, more choices of reformatting.
JS/CSS beautify also exists: just see Python plugins site.
One trick that you can use is to have a git hook to run lint, or it's equivalent for other languages, and reject the code with clear error messages if it doesn't meet the requirements. While the lint family of tools try to locate errors by static analysis there are also style rules that you can enable and/or customise in most of them - there are a long list ...
I wish there was a tool that behaved like you describe. We gave up on using code formatting tools in our projects because the formatting changes they enforced annoyed developers far more than we annoyed each other with our own formatting quirks.
For indentation, in particular, most editors have functions to just indent without otherwise formatting, and you ...
The python pygments includes a utility pygmentize that can syntax highlight a large number of programming languages to the command prompt or to HTML. LaTex or RTF.
pygmentize -f html /path/to/file.py
Would syntax highlight your file into html and output to the console or you can pipe it to a file.
There are lots of options to customise the output.
You could look at CodeMirror 2 which fits 90%-95% of your requirements and can be expanded to fit the rest:
Open Source & Gratis - Yes commercial support is available from the author.
Code Reformatting - Yes
Syntax Highlighting - Yes
Offline Use - Yes either download the latest release or ...
For the general formatting stuff, I'd suggest looking into clang-format, it's one of the best tools out there right now for this type of thing, and comes with a bunch of predefined formatting styles.
For the general coding stuff, you want to find a good static analyzer. I unfortunately don't have any good one to recommend myself as I don't do much with C, ...
I use Visual Studio Code to indent my messy code before I make any commit. I have tried this feature in Aptana Studio, Brackets, PHPStorm and Atom. VS Code does it best (in my opinion).
The code you've shared may need to be indented as HTML separately.
SynWrite (Windows only); CudaText (cross-platform) share the same lexer MediaWiki. Install it using AddonsManager menu.
This lexer hilites Mediawiki text as follows:
I don't think some app can minify/unminify Mediawiki. So no plugin exists here.
Our DMS Software Reengineering Toolkit can do this.
DMS is a program transformation system that parses source text to compiler data structures, applies transformations on those data structures to produce essentially a different program, and then can regenerate source code for the modified program back from those data structures. DMS uses compiler-...
Here are a few:
Opens jsFiddle output to a single unified html page in a new window or tab with one click from the Omnibox.
jsFiddle is awesome, but sometimes you want to combine all your HTML, CSS & JS into a single HTML file (perhaps to save it to your local disk). jsFiddle Player does that, it simply adds a "play" button to the ...
The PHP formatter formats PHP code nicely. It formats any HTML found between PHP fragments reasonably considering that that the HTML is broken into arbitrary fragments by the intervening PHP elements. It does not touch code inside <script> tags.
aStyle - no competition. I've been using this for a while now as I tend to write functions in notepad++ on my way to work and then beautify it with this before inclusion in projects - it really does a great job in my opinion.
Depending on exactly what you need, GNU Indent might do the trick. It has customisable indentation and formatting rules, which I guess you could tweak to suit your particular code. I don't know much about Obj-C though, so it might fall over when trying to deal with that.
Since it seemed like there was no such library so I've written one myself. You can find it here:
I've also written about it on my blog:
Our CloneDR tool will do this, detecting clones across thousands of files. You don't give it anything but the files; it determines the clones automatically.
A clone set is a set of code blocks that are deemed similar. Often clone sets are just pairs, sometimes of thousands of lines, this happens when source files are copied en masse in the code base. ...
Although it has to be installed a better solution is to use SublimeAStyleFormatter - which is a Sublime Text Plugin.
You have to first install Sublime Text (painless) and then install SublimeAStyleFormatter which is also quite painless. There are a couple methods you can use to install it (all of which are detailed in the readme) but I recommend the ...