From 355d3e236e1a61986f62ff2df9cc04d281ec1009 Mon Sep 17 00:00:00 2001 From: mattkae Date: Sat, 3 Dec 2022 09:30:55 -0500 Subject: Some better highlighting, org-moder, etc --- examples/test.js | 34 ++++++++++++++++++++++++++++++++++ examples/test.org | 4 ++++ 2 files changed, 38 insertions(+) create mode 100644 examples/test.js create mode 100644 examples/test.org (limited to 'examples') diff --git a/examples/test.js b/examples/test.js new file mode 100644 index 0000000..15c71d7 --- /dev/null +++ b/examples/test.js @@ -0,0 +1,34 @@ +/** + Adds to numbers. + + @param x {number} The X input + @param y {number} The Y input + @returns {number} x + y +*/ +function myFunction(x, y = 10) { + return x + y +} + +myFunction() +myFunction() + +class MyBigClass { + constructor(pValue) { + this.mValue = pValue; + } + + getValue() { + return this.mValue; + } + + setValue(pValue) { + this.mValue = pValue; + } +} + +const c = new MyBigClass(10); +c.setValue(11); + +for (let index = 0; index < 30; index++) { + console.log("Here"); +} diff --git a/examples/test.org b/examples/test.org new file mode 100644 index 0000000..c7dc3ea --- /dev/null +++ b/examples/test.org @@ -0,0 +1,4 @@ +* Org +- Hello world +- This is my list +** -- cgit v1.2.1