-2

A frequent problem I'm having when editing web pages is that HTML jargon can get in the way, when I need to focus on just the content for making corrections. Once markup is added to a piece of text, img tags, hyperlinks, divs and all of their attributes can take multiple lines. Even with good indentation and spacing, simple semantic elements like em & strong can severely impair readability.

Here is what DOES NOT solve the problem for me:

  1. Editing content separately in plain text, Markdown or rich text program. It is OK to write in a text editor during the initial stages of preparing content, but once a text document gets marked up with HTML, should you decide to make a change in the content, you have to then edit it in two or more places: at least once in the HTML & once in the original text file.

  2. HTML expanders like Emmet. Text expanders help when adding elements, but they do nothing to improve readability once the elements are in place.

Quasi-solutions:

  1. Pre-processors like HAML & Jade. Those can make a document more readable, but have their own peculiarities. Markdown, although great for readability has limited HTML capabilities before conversion.

  2. WYSIWYG editors. In a traditional editor I could go into the Design mode and make changes to the rendered page directly without any HTML artifacts. This is great, but I have to constantly double check between code view & design view in order to monitor how changes are reflected in the code, which sort of defeats the whole purpose.

The Ideal solution

Ideally, an editor that turns on/off markup in code view or a meta-language that makes an HTML document Markdown-like readable would get the job done. In other words, does a tool/lightweight language that separates pure content from semantic structure exist?

9
  • This question is very close to a software recommendation request, unfortunately. The only solution I can think of is to find a text editor that allows text hiding/concealing. Vim has this feature, and I learned how to make it hide certain tags that appear more often in text content, but it's a bit of a kluge and doesn't hide all tags.
    – Heptite
    Apr 8, 2014 at 21:14
  • I'm not sure I understand why a WYSIWYG doesn't work for you? Why are you double-checking what HTML Was used?
    – ernie
    Apr 8, 2014 at 21:18
  • @Heptite Isn't there a meta-language/pre-processor that might be more readable while not removing HTML essentials? Apr 8, 2014 at 21:21
  • 1
    All right, so you want code your way but you generally don't want to see it. Your issue with the WYSIWYG is that it generates code differently than you write it. I'm not sure you're going to find a tool that basically hides all the markup and restores it that's not a WYSIWYG . . . good luck.
    – ernie
    Apr 8, 2014 at 21:46
  • 1
    I'm sorry, but as it stands your question just can't really be answered because it's both too broad and too narrow. I'm inclined to vote to close it.
    – Heptite
    Apr 8, 2014 at 21:57

1 Answer 1

2

For HTML editing I use Notepad++. This is a free, open-source, lightweight texteditor with syntax highlighting. It has all sorts of features inside to make any form of code readable. For example, commonly used tags are coloured differently than normal text, their parameters are differently coloured as well, and it can higlight the start and end of tags you're editing within.

For example:

notepad++ html example

3
  • code coloring doesn't cut it. I need to abstract the markup entirely ;) Apr 8, 2014 at 21:23
  • What do you mean by "abstract the markup? I fail to understand what you seek.
    – LPChip
    Apr 8, 2014 at 21:54
  • They wants Word For Websites. If Dreamweaver doesn't do it then NSL. Apr 8, 2014 at 22:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .