Skip to content

Commit f38c523

Browse files
LeeLee
authored andcommitted
adds pygment styles and a code example
1 parent 92d694a commit f38c523

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Title: Pygments code test
2+
3+
Code below
4+
5+
```
6+
//Initialize the array that will hold the primes
7+
var primeArray = [];
8+
/*Write a function that checks for primeness and
9+
pushes those values to the array*/
10+
function PrimeCheck(candidate){
11+
isPrime = true;
12+
for(var i = 2; i < candidate && isPrime; i++){
13+
if(candidate%i === 0){
14+
isPrime = false;
15+
} else {
16+
isPrime = true;
17+
}
18+
}
19+
if(isPrime){
20+
primeArray.push(candidate);
21+
}
22+
return primeArray;
23+
}
24+
```
25+
26+
Code above

theme/static/css/main.css

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)