Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: update/add missing demo samples #4975

Merged
merged 3 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion demo/kitchen-sink/doclist.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ var docs = {

"docs/c9search.c9search_results": "C9 Search Results",
"docs/mel.mel": "MEL",
"docs/Nix.nix": "Nix"
};

var ownSource = {
Expand Down
7 changes: 7 additions & 0 deletions demo/kitchen-sink/docs/django.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "base.html" %}

{% block title %}Ace Django Template{% endblock %}

{% block content %}
<h1>Hello, {{ name|default:"World" }}!</h1>
{% endblock %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions demo/kitchen-sink/docs/mips.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Original source from https://eng.libretexts.org
# Kann, Charles W., "Introduction To MIPS Assembly Language Programming" (2015). Open Textbooks. 2.
# https://cupola.gettysburg.edu/oer/2

# Program File: Program2-1.asm
# Author: Charles Kann
# Purpose: First program, Hello World
.text # Define the program instructions.
main: # Label to define the main program.
li $v0,4 # Load 4 into $v0 to indicate a print string.
la $a0, greeting # Load the address of the greeting into $a0.
syscall # Print greeting. The print is indicated by
# $v0 having a value of 4, and the string to
# print is stored at the address in $a0.
li $v0, 10 # Load a 10 (halt) into $v0.
syscall # The program ends.
.data # Define the program data.
greeting: .asciiz "Hello World" #The string to print.
File renamed without changes.
9 changes: 9 additions & 0 deletions demo/kitchen-sink/docs/text.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This is just some text!

// These
# are
-- not
<!-- comments -->
(but indent actions work)

This is just some text!
3 changes: 3 additions & 0 deletions src/ext/modelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ var supportedModes = {
LiveScript: ["ls"],
Log: ["log"],
LogiQL: ["logic|lql"],
Logtalk: ["lgt"],
LSL: ["lsl"],
Lua: ["lua"],
LuaPage: ["lp"],
Expand Down Expand Up @@ -190,6 +191,7 @@ var supportedModes = {
snippets: ["snippets"],
Soy_Template:["soy"],
Space: ["space"],
SPARQL: ["rq"],
SQL: ["sql"],
SQLServer: ["sqlserver"],
Stylus: ["styl|stylus"],
Expand All @@ -202,6 +204,7 @@ var supportedModes = {
Textile: ["textile"],
Toml: ["toml"],
TSX: ["tsx"],
Turtle: ["ttl"],
Twig: ["twig|swig"],
Typescript: ["ts|typescript|str"],
Vala: ["vala"],
Expand Down