Lightweight markup languages

Interested in learning about lightweight markup languages? Then here you are!

Lightweight markup languages

Introduction

What is a “markup language”?

A markup language is a set of codes that, when applied to plain text, allows you to add one or more of the following properties (among others):

  • Define the text

  • Structure the text

  • Describe the layout of the text

  • Decorate the text

One markup language you encounter every day (unless you’re a hermit) is hypertext markup language, or HTML. Websites and apps that bring you news and show you your email are built, at least in part, with HTML markup using tags as a mechanism for markup of raw text content.

The problem with some markup languages (among them HTML) is that entering these tags manually is a very tedious task. And with other languages, such as XML, tags and their attributes make up more of the overall content than the text itself.

Examples of markup languages

Markup languages are used wherever it is required to obtain formatted text based on text alone: in typography (SGML, TeX, PostScript, RTF), computer user interfaces (Microsoft Word, OpenOffice), the World Wide Web (HTML, XHTML, XML, WML, VML, PGML, SVG, XBRL).

Lightweight markup languages

If you wanted to take advantage of markup languages, for example by publishing an HTML page on the internet or converting a DocBook file to PDF so that it could be printed, you had to do one of two things. On the one hand, you can spend time learning these languages from the inside and outside, writing them down manually, and then checking your work three times. Or you could invest the money in a tool that manages the complexity of them for you.

Fortunately, some enterprising developers have come up with a third option. They created new markup languages that contained many (in some cases most or all) of the functions of heavier analogues, but greatly simplified the syntax. They are used where a person has to prepare text in a regular text editor (blogs, forums, wikis), or where it is important that a user with a regular text editor can also read the text. Here are some widely used lightweight markup languages:

  • BBCode

  • Markdown

  • reStructuredText

  • Textile

  • Wiki markup

  • Various auto-documentation systems (for example, Javadoc).

HTML

The most common language is HTML (an abbreviation of the English Hypertext Markup Language − “hypertext markup language”). It is standard for Internet documents, with its help all web pages are created. Documents that contain a special code are processed by browsers and presented to users in a convenient interface. Thus, you get the opportunity to view pages, print them, use them to transfer data to servers.

Textile

It is one of the simplest markup languages, has somewhat more functionality. Its main task is to automatically convert text into markup while maintaining the breakdown into paragraphs. The language is used in CMS Textpattern.

BBCode

The abbreviation from the English Bulletin Board Code is a markup language that is used for formatting (formatting) messages on various electronic bulletin boards, forums, comments, personal messages, and so on. Tags similar to HTML tags are used to format the text. Unlike HTML tags, BBCode is enclosed in square brackets.

LaTeX

It is a markup language that is capable of automating many operations related to the layout of documents, such as automatic page numbering, creation of tables, illustrations, formulas, cross-references, headers, footers, subject indexes, tables of contents and references. Being distributed under the LaTeX Project Public License, LaTeX refers to free software.

Markdown

Markdown is an easy way to add formatting. — for example, headings, bold/italic text and lists — in plain text. Instead of relying on HTML or WYSIWYG editors, Markdown allows you to create full pages of formatted text without having to take your fingers off the keyboard, and it’s all much more intuitive than HTML.

Conclusion

While the idea of using markup languages with text documents was developing, this increased the use of markup languages in other areas, they suggested using them to represent various types of information, including playlists, vector graphics, web services, user interfaces.

Latypova Diana
Latypova Diana
Student

My research interests include programming, IT, Data Science.