LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 10-01-2016, 07:09 AM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
Alternative formats to (x)HTML ?


Hello,

I read that there is not only HTML which can make webpages. There are many other text languages which can compile the plain text code to HTML back.

HTML, TeX, Wiki,... are just the same more or less way to format the text.

You can do this as well in Wiki format, TeX, ...
WIKI is an example, i.e. "==" will produce like into html: <h1> <h1> , \section{ } would be in TeX,.. .and so on.

You can visit the wiki syntax:
https://www.mediawiki.org/wiki/Help:Formatting
https://en.wikibooks.org/wiki/LaTeX/...aph_Formatting
http://www.w3schools.com/html/html_formatting.asp
http://www.biblioscape.com/rtf15_spec.htm

more formats: https://en.wikipedia.org/wiki/List_o...rmats#Document

they are different, have different purposes, but in some maneer, they produce the formating/processing of text.

All is just plain text and a given language for a word processing/viewing !

TeX is pretty long to type.
(x)HTML is kinda ugly. xml is really ugly to read if you want to read lot of text.
Wiki is rather unclear to read

HTML is rather prone to mistakes in the syntax. You can easily forget '>' or '<', or <body>, and who know what's going to produce the browser.

What's the nicest, structured, syntax?

Best regards

Last edited by patrick295767; 10-01-2016 at 10:00 AM.
 
Old 10-01-2016, 09:10 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
you can have a plain text file, just
Quote:
hello world
and your browser will display - surprise - an empty page with the words hello world on it.
but you can't do a lot with it.
HTML is what it has to come out in the end.
and JS.
because that is what your browser at home needs.
but there's many ways to GENERATE HTML output.
one is php. it's called server-side scripting, iirc.

i suggest to just read more on the subject, history common practices, and always use F12 and View Source.
 
Old 10-01-2016, 09:46 AM   #3
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by ondoho View Post
you can have a plain text file, just
and your browser will display - surprise - an empty page with the words hello world on it.
but you can't do a lot with it.
HTML is what it has to come out in the end.
and JS.
because that is what your browser at home needs.
but there's many ways to GENERATE HTML output.
one is php. it's called server-side scripting, iirc.

i suggest to just read more on the subject, history common practices, and always use F12 and View Source.


the point is that you ascii will define:
- bold, header1, 2, ... bullets, lists,...

You can do this as well in Wiki format, TeX, ...

WIKI is an example, i.e. "==" will produce like into html: <h1> <h1> , \section{ } would be in TeX,.. .and so one

All is just plain text and a given language for a word processing !
 
Old 10-01-2016, 10:17 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by patrick295767 View Post
HTML is rather prone to mistakes in the syntax. You can easily forget '>' or '<', or <body>, and who know what's going to produce the browser.
http://validator.w3.org/

If you're not already using it, start.

EDIT: and this goes doubly, triply, quadruply so if cross-browser compatibility is at all a concern.

Last edited by dugan; 10-01-2016 at 07:55 PM.
 
Old 10-01-2016, 12:47 PM   #5
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
I like Markdown fine enough. Ain't nobody got time to write HTML by hand!
 
Old 10-02-2016, 01:45 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Myk267 View Post
I like Markdown fine enough. Ain't nobody got time to write HTML by hand!
this.
like i said, server side scripting.
fwiw, i'm using grav, and it allows me to use markdown for composing content.
also pages aren't written from scratch - there's so much that just repeats, it would be hell.
it's called a content management system, or blogging engine or whatever.
 
Old 10-02-2016, 01:50 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I use pandoc to convert Markdown to HTML.
 
Old 10-03-2016, 03:00 AM   #8
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
Quote:
Originally Posted by dugan View Post
I use pandoc to convert Markdown to HTML.
Markdown is a pretty cool one, indeed. It is nicer to read and simpler to work with.
https://daringfireball.net/projects/markdown/

I remember there was another one similar, as cool as markdown, but I cant find its name.
 
Old 10-03-2016, 04:12 AM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Myk267 View Post
I like Markdown fine enough. Ain't nobody got time to write HTML by hand!
I must have plenty of time then. Just call me old-fashioned.
 
Old 10-03-2016, 09:02 AM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by patrick295767 View Post
I remember there was another one similar, as cool as markdown, but I cant find its name.
Restructured Text/RST/Sphinx?
 
Old 10-05-2016, 12:37 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Myk267 View Post
Ain't nobody got time to write HTML by hand!
otoh, my favorite lightweight IDE has a neat automatic html formatting feature - it automatically closes tags.
so if i write "<caption>", and then "<" it automatically adds "/caption>" and places the cursor between the tags.
that, and automatic indentation, and html writes almost like plaintext.

still, a dedicated cms (*) + markdown is better imho.

(*) well, at least something that automatically adds the topmost & bottommost parts of a html document.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Editor that matches HTML tags (Notepad++ alternative) Ben_W Linux - Software 3 02-13-2014 06:46 AM
Editor that matches HTML tags (Notepad++ alternative) Ben_W Linux - Software 1 02-12-2014 07:07 AM
LXer: Norway mandates use of open formats: HTML, ODF and PDF LXer Syndicated Linux News 0 12-21-2007 02:30 AM
Search & Replace Technique to Fix html HREFs w/o html extension donv2 Linux - Newbie 1 01-30-2007 11:59 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration