A command-line HTML pretty-printer: Making messy HTML readable [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for recommendations for HTML pretty printers which fulfill the following requirements:
Takes HTML as input, and then output a nicely formatted/correctly indented but "graphically equivalent" version of the given input HTML.
Must support command-line operation.
Must be open-source and run under Linux.

Have a look at the HTML Tidy Project: http://www.html-tidy.org/
The granddaddy of HTML tools, with support for modern standards.
There used to be a fork called tidy-html5 which since became the official thing. Here is its GitHub repository.
Tidy is a console application for Mac OS X, Linux, Windows, UNIX, and more. It corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern standards.
For your needs, here is the command line to call Tidy:
tidy inputfile.html

Update 2018: The homebrew/dupes is now deprecated, tidy-html5 may be directly installed.
brew install tidy-html5
Original reply:
Tidy from OS X doesn't support HTML5. But there is experimental branch on Github which does.
To get it:
brew tap homebrew/dupes
brew install tidy --HEAD
brew untap homebrew/dupes
That's it! Have fun!

I think HTML tidy is one of the household names in that field.

To have an updated, OS-agnostic answer to this question:
While the original HTMLTidy project has been dormant for over 6 years, a "W3C Community & Business group" that goes by the name "HTML Tidy Advocacy Community Group (HTACG)" has now begun to continue its development, with the goal of making it fully HTML5-compatible. The group was formed in January 2015 and although they describe the current state as "work in progress", binaries are already available for download.
Project homepage: http://www.html-tidy.org/
Binary downloads: http://binaries.html-tidy.org/
Github repository: https://github.com/htacg/tidy-html5
Group page at W3C: https://www.w3.org/community/htacg/

Just a late followup on an OT question.
Homebrew has a tidy-html5 installed as you'd expect.
It's linked up as tidy5.

Related

Comprehensive List of Essential Software for General Developers on Mac and PC [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
This may seem like an odd request, but as a computer science student, I'm always running into apps that make doing a development task easier than the way I was doing it before. Unfortunately, I tend to discover these apps long after doing things the hard way for far too long. I'm only on mac, but I figured I'd include both Mac and PC for future reference (if I ever have both systems).
For me, a student of C++ programming, I'm currently religiously using just a few pieces of software on Mac:
XCODE - IDE
Atom - Text Editing, HTML, and a few other things
Cyberduck - SFTP into my school's Linux system.
Terminal - (Haven't tried iTerm2 yet or any other Terminal
alternative)
Go2Shell - quick folder navigation for Terminal
What other utilitarian apps do you guys find particularly helpful for you as developers? Feel free to mention any software you may use to help your workflow.
I hope this question isn't too broad of a topic for S.O. If so, please feel free to remove it.
Also I didn't know what tag to use for this topic, so if the mods need to move this thread to a more appropriate area, that would be great.
Well, your list does not look bad at all ;)
Most developers will have a basic set of tools such as:
An IDE (Integrated development environment,e.g. phpStorm, Aptana,etc..) - where you write your code.
Various Compilers (e.g. C\CPP compiler for a C\CPP developer, or a LESS compiler for a web developer, whatever you use in your daily work) - to compile your raw code\markup into an executable\usable format.
A Debugger - to debug your code.
A Local development stack (e.g. LAMP, used mainly by web developers) - to execute your code and see how it works, debug, etc..
A Dependency management tool - optional: if you have a big project with many dependencies.
A Version control system (such as Git, SVN, etc..) - to maintain your project as a proper code repository.
An FTP client (if you upload files to a server)
That is generally what you need to write software\applications, anything in addition to that is considered helpful but you don't really need it.
There are some fancy tools for lazy people, those tools can save you some time but the huge disadvantage is when you start to rely on those tools and then you stop understanding how things actually are constructed and work - which will make the maintaining of your software a nightmare.
The best thing is to know when to use "helper" tools, but not many of them, use them only if you have to, and do not get to the situation where you rely on them - because then if they have a bug or a mysterious flaw, you will be dead in the water until the next hotfix or patch comes out.
Good luck !

Is there any IDE for jekyll static site generator? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there any IDE for easy development of jekyll sites. which supports Jekyll site generation along with sass compilation.
You could try Sublime Text with the sublime-jekyll plugin.
Apart from already mentioned Sublime Text, Atom and WebStorm there is also Brackets. It has quite good Git support as well as Emmet and Jekyll. And it is basically aimed to web developers, it is lighter than WebStorm and more web oriented out-of-the-box comparing to Sublime (it has hex color preview for example). So I would suggest to have a look at it as well .
I got the solution, 'WebStorm' is the tool i'm looking for. It very much integrates with jekyll.
Late answer, but https://atom.io is another superb option. Its powered by GitHub
Try Netlify CMS, Prose, Jekyll Admin.
If you want to use an editor with add-ons, I would recommend Atom, a GitHub-made editor like VS Code. People may say Microsoft owns GitHub so why don't you just use the most popular editor VS Code instead. Well, for some languages at some stages, Atom is just way more superior. For example, when it comes to Jekyll static site development for GitHub Pages, Atom is the way to go.
Currently, VS Code's Jekyll Snippets and Jekyll Syntax Support have 22k and 30k installs respectively, while Atom's markdown-writer and jekyll have 793k and 27k installs respectively.
However, to directly answer your question of what "IDE" to use, there is no IDE for that. But there are a number of visual frameworks for that. To name a few: Netlify CMS, Prose, Jekyll Admin, etc.
You may find this repo very useful: Awesome Jekyll Editors.

Are the Font Awesome 3.2 docs still accessible? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am using Font Awesome 3.2. Font Awesome just released version 4.0. Prior to the 4.0 release I would view Font Awesome's documentation at http://fortawesome.github.io/Font-Awesome/icons/. The new version has differing icon names and makes it difficult to work between the old and new documentation.
Are the 3.2 docs still available? Can I download 3.2 docs?
The documentation for 3.2.1 has been archived at:
http://fortawesome.github.io/Font-Awesome/3.2.1/
There's an article for upgrading from 3.1.2 to 4 on the Github wiki for the Font Awesome project:
Upgrading from 3.2.1 to 4
You can also download earlier releases from the project's Releases page. The 3.2.1 release does include docs, but they must be compiled to be useful.
Generally speaking, you can always check the Wayback Machine as a last resort, which has cached versions of some of the docs from previous releases based on date:
Cached version of FontAwesome site from 3.2.1 release
I just wrote a set of SED regexp to convert class name of font-awesome 4.0.0 to font-awesome.3.2.1 equivalent.
Look at this :
https://gist.github.com/guli/7154067
To use it :
sed -f sed_rules.sed < font-awesome.css > font-awesome.css.fixed
Feel free to comment or fix the gist :)
I've written a simple Python tool to migrate HTML from font awesome 3.2 to 4.0. It may be of use to you.
You can grab it here: https://github.com/robert-b-clarke/font-awesome-3-to-4
Tested migrating a batch of Django templates from font awesome v3.2.1 to v4.0.3. Patches, fixes and tweaks are of course welcome :)

Organisational project management for Open Source work [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
As a small company we do work a lot on open source code. (http://Github.com/agiliq). I want a tool which we can use to do project management and task tracking for our open source code and work.
Features
Should integrate well with Github (See below)
Commits to Github should update the project management tool.
Logging a ticket in Github should start a task here. Should work for closing too.
Public mode so tasks and discussion here should be visible on public site.
I recommend Redmine. We use it at my work and it works pretty well. I have yet to come across something else better.
you might want to check out atlassian's tools, in fact their products are not for free but open source project can use it without any cost .
http://www.atlassian.com/software/confluence/licensing-faq.jsp#open-source
and they support github also : https://plugins.atlassian.com/plugin/details/9502
There are several issue-tracking tools which integrate directly with GitHub. From the feature description page:
Already have a favorite issue tracker?
No problem! We're here to improve your
workflow, not replace it.
GitHub integrates with: FogBugz, Trac,
Lighthouse, and Pivotal Tracker
If one of those works for you, that seems like the obvious solution.
Like other posters, I am also a fan of Redmine, but I'm not sure how you get the issues integration with Redmine without doing extra work (see below). There is a plugin that allows you to sync the GitHub repository with your local Redmine repo, so that part is covered. There is also an excellent discussion comparing the feature sets of the two.
Finally, you can roll your own bit of code to hook up your favourite tool. GitHub has a pretty comprehensive API, with libraries in many languages. Here's the Issue Tracker API. Using this, you could probably set up an issues trigger in Redmine quite easily. A simple solution would be to write a small piece of code that fires off an email to Redmine when the GitHub API detects an incoming issue.
If you are using Eclipse (with PyDev for Python), you have a number of mylyn connectors in development right now.
Initially tracked by bug 272812, a GitHub mylyn connector is now monitored in bug 303009, with the org.eclipse.mylyn.github project.
Take a look at Assembla - task tracking and collaboration. Free for open source projects. www.assembla.com

Any open source hosting site for abandoned projects? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have some projects for which I have ceased development a long time ago but still get code access requests for. I'm currently providing zipped packages from my personal web site. I think zipped packages are far from being useful (e.g. can't read code right away, can't provide URLs to individual source files, can't fork easily, lifetime is dependent on my own web page's).
I want that archaic code to be present on the net whether I keep my web page up or not. I saw the question "What's the best open source hosting site?". However, most sites request the project "to be active", Codeplex for instance. I didn't go through EULA's of all providers to see if they allow abandoned projects.
Are there elephants' graveyards for old code without activity restrictions? Which one would you pick, why?
UPDATE:
I tried both Google Code Hg and GitHub to see which is easier to use. Although GitHub required SSH key setup and additional steps, it was still much easier to get going. On Google Code even finding "create a project" page was a hassle in itself, every time I had to navigate through FAQ. Hg authentication did not work for some reason (yes I tried both encoding # to %%40 and removing gmail suffix completely, didn't work).
On GitHub, creating/forking a project is a breeze, supports syntax highlighting for Pascal source files which was also a plus for those archaic code.
Github would be a good choice. I don't think they have such a requirement and it would be simple for someone else to take over as the maintainer with no action necessary on your part.
I don't think code.google.com has such requirement.
You can host your project active or not for how long as you wish, and perhaps if a community will form around it grant someone the admin role to take the lead.
-- EDIT (based on ndp answer) --
You would obviously want to set your repository type to Mercurial, to allow easy cloning / branching for people interested in hacking on the code.