ShareShortcuts

Learn The Basics Of HTML 1.0.1

Learn the basics of html

vultario
„Learn The Basics Of HTML 1.0.1“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit vultario die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
42K
Gesichert
1
Aktionen
26
Kategorie
Productivity
Version
1.1
Sprache
EN

Learn the basics of html.

Neue Funktionen

Version 1.1

Fixed typos

Versionsverlauf
1.1 17. Apr 2022

Fixed typos

1.0 16. Apr 2022

First release

Was er macht

26 Aktionen
  1. Show Result
  2. Show Result
  3. Show Result
  4. Show Result
  5. Show Result
  6. Ask for Input
    So first, Make a script that says “hello world”. (Case sensitive)
  7. If
  8. Show Result
  9. Nothing
  10. If
  11. Show Result
  12. Make Rich Text from HTML
  13. Quick Look
  14. Show Result
  15. Text
  16. Make Rich Text from HTML
  17. Quick Look
  18. Show Result
  19. Ask for Input
    Now make a heading that says, “I LIKE HEADINGS”. (Case sensitive)
  20. If
  21. Show Result
  22. If
  23. Show Result
  24. Make Rich Text from HTML
  25. Quick Look
  26. Show Result

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/text'
#define color darkblue
#define glyph command

show("Hi! I'm Vultario and today I am going to teach you html (it's easy)")
show("So, first of all , this is a simple one. You can make any text you want and type how much you want, just by using this: \"<p>\"")
show("What I mean, is, you put it before any text you type.")
show("Example: \"<p>hello world</p>\"")
show("Oh, and I forgot to tell you, whatever thing you are doing, if it is ending something, (like ending a word or sentence) you put a slash before it.")
const ProvidedInput = prompt("So first, Make a script that says “hello world”. (Case sensitive)")

if ProvidedInput != "<p>hello world</p>" {
	show("Sorry, you did not do it right. but it's ok! Your a beginner! So what you did was: \"{ProvidedInput}\". But, your supposed to do, \"<p>hello world</p>\".")
} else {
	show("Good job! You just made your first script!")
	const RichTextFromHTML = getRichTextFromHTML(ProvidedInput)
	quicklook(RichTextFromHTML)
}
show("Now, I'm going to teach you how to use headings. Headings look big and bold, like this:")
const Text = "<h1>This is a heading</h1>"
const RichTextFromHTML1 = getRichTextFromHTML(Text)
quicklook(RichTextFromHTML1)
show("So if you want to do a heading, you put this before it: \"<h1>\". And like I said, you end it with a slash before it, like this: \"</h1>\".")
const ProvidedInput1 = prompt("Now make a heading that says, “I LIKE HEADINGS”. (Case sensitive)")

if ProvidedInput1 != "<h1>I LIKE HEADINGS</h1>" {
	show("You got it wrong. You were supposed to do: \"<h1>I LIKE HEADINGS</h1> and not: \"{ProvidedInput1}\"")
} else {
	show("Good job!")
	const RichTextFromHTML2 = getRichTextFromHTML(ProvidedInput1)
	quicklook(RichTextFromHTML2)
}
show("You have just learned the basics of html! If you want to learn more, wait for new updates. Bye!")
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von vultario

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung