Skip to content

Commit

Permalink
git commit . -m
Browse files Browse the repository at this point in the history
  • Loading branch information
secretGeek committed Jun 5, 2019
1 parent 9909ff3 commit 50bd0fc
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 1 deletion.
141 changes: 141 additions & 0 deletions html.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
* {
display:block;
}
a,code,em,strong {
display:inline
}
*{
font-family:Monospace;
margin:1.5em 0;
padding:0;
text-decoration:none
}

/* tags with attributes. */

a[href]::before {
content: "<a href='" attr(href) "'>"
}
link[rel]::before {
content: "<link rel='" attr(rel) "' type='" attr(type)"' href='" attr(href) "'>"
}

/* special escaping for close style */
style::before {
content:'<style>'
}
style::after {
content:'<\/style>'
}

/* brutify */
*::before,*::after {
color:rgb(136, 18, 128, 0.5);
font-weight:100;
font-size:1.0em
}
html {
max-width:70ch;
padding:2ch;
margin:auto;
color:#333;
font-size:1.2em;
}

/* here is the highly repetitive bit */
p::before {
content:'<p>'
}
p::after {
content:'</p>'
}
html::before {
content:'<html>'
}
html::after {
content:'</html>'
}
head::before {
content:'<head>'
}
head::after {
content:'</head>'
}
title::before {
content:'<title>'
}
title::after {
content:'</title>'
}
link::before {
content:'<link>'
}
link::after {
content:'</link>'
}
body::before {
content:'<body>'
}
body::after {
content:'</body>'
}
h1::before {
content:'<h1>'
}
h1::after {
content:'</h1>'
}
h2::before {
content:'<h2>'
}
h2::after {
content:'</h2>'
}
p::before {
content:'<p>'
}
p::after {
content:'</p>'
}
pre::before {
content:'<pre>'
}
pre::after {
content:'</pre>'
}
code::before {
content:'<code>'
}
code::after {
content:'</code>'
}
a::before {
content:'<a>'
}
a::after {
content:'</a>'
}
aside::before {
content:'<aside>'
}
aside::after {
content:'</aside>'
}
blockquote::before {
content:'<blockquote>'
}
blockquote::after {
content:'</blockquote>'
}
em::before {
content:'<em>'
}
em::after {
content:'</em>'
}
strong::before {
content:'<strong>'
}
strong::after {
content:'</strong>'
}
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
see <a href='html.html'>html.html</a>
<html>
<head><title>html wysiwyg</title>
<link rel="stylesheet" type="text/css" href="html.css" />
</head>
<body>
<h1>What you see is what you get.</h1>
<p>Finally, you can make any html page look like html.</p>
<p>Just link to this <a href='html.css'>stylesheet</a>.</p>
<p>For a self-contained version, including an explanation, see <a href='html.html'>a html quine.</a></p>
</body>
</html>

2 comments on commit 50bd0fc

@ajacobs-isp
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit message! πŸ’―

@secretGeek
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to make a commit message Quine but didn’t have time to develop one. (As in a commit message that would perform a commit and leave itself as the message)

Please sign in to comment.