12 lines
425 B
Bash
Executable File
12 lines
425 B
Bash
Executable File
#!/bin/sh
|
|
source /etc/profile.sh
|
|
|
|
require 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.58.1/codemirror.js'
|
|
require 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/codemirror.css'
|
|
require 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/theme/shadowfox.css'
|
|
require 'com/codemirror.js'
|
|
|
|
echo "<a-entity codemirror='file: $1'></a-entity>" >> /dev/browser/html
|
|
|
|
# for js-equivalent see bin/codemirror
|