Re: How do you edit markup? e.g. html?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim here.  I too am a dyed-in-the-wool vi/vim user and use it to edit
my markup files.  I work predominantly in pure HTML but also use
vi/vim for XML/DocBook, Markdown, LaTeX, or other markup if it comes
to that.

If you don't already use them, Vim does offer some handy text-objects
to make it easier to work with HTML/XML.  The "it", "at", "i<", and
"a<" that makes quick work of working with tags.  If you don't use
text-objects, they're one of Vim's killer features.  Even more-so
when it comes to HTML/XML markup.

If I'm typing a particular construct frequently, I'll create an
abbreviation to simplify because I'm lazy.

Also, Tim Pope's Vim Surround (https://github.com/tpope/vim-surround)
plugin helps make it easy to wrap text in tags or other characters.

I'm also partial to the "tidy" program (`apt-get install tidy` on my
Debian box) which does some tidying, correction, and checking of
source HTML & XML.  It's good for catching the little things that I
miss.

I employ a fairly broad spectrum of browsers to preview my code.  I
like lynx and its CLI kin for their sheer speed; I like Firefox or
Chromium to preview what most of the world would encounter.

Additionally, as a process thing, for inline tags, I like to put them
on their own line.  It's my personal oddity, but I find that it
simplifies reading back the HTML source.

Here's hoping there are tips in there that improve your workflow,

-tim



On February 19, 2018, Linux for blind general discussion wrote:
> Hi All:
> 
> Just wondering how people manage editing markup files, html, xml,
> even markdown.
> 
> What tools and approaches have you found most useful as a screen
> reader user?
> 
> My personal approach is less than optimal, which is how this
> question came forward at this time. I'm personally a died in the
> wool vim user, but it can be difficult to understand and properly
> edit content in the midst of markup tags, even in a markdown
> environment. Perhaps there are vim tricks I could be better at?
> I'm aware that emacspeak actually offers some advantages here--but
> is that the current best practice?
> 
> Thanks in advance for sharing your approach.
> 
> Janina
> 
> -- 
> 
> Janina Sajka
> 
> Linux Foundation Fellow
> Executive Chair, Accessibility Workgroup:	http://a11y.org
> 
> The World Wide Web Consortium (W3C), Web Accessibility Initiative
> (WAI) Chair, Accessible Platform Architectures
> http://www.w3.org/wai/apa
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list



[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]