-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allows us to load it from a CDN (resolves #21) * Rely on a smaller core and allow the load of additional languages (a breaking change)
- Loading branch information
1 parent
3ee563f
commit 6ed7ef5
Showing
19 changed files
with
879 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// .source-highlightjs-languages | ||
// Demonstration of source highlighting with highlight.js using additional languages | ||
// :include: //div[@class="slides"] | //body/script | ||
// :header_footer: | ||
= Scilab Code with Highlight.js: using additional languages | ||
:source-highlighter: highlight.js | ||
:highlightjs-languages: yaml, scilab | ||
|
||
== Use the Source | ||
|
||
[source,scilab] | ||
---- | ||
function B=gauss_filter_3_3(A) | ||
x=size(A,2); | ||
y=size(A,1); | ||
B = zeros(y, x); | ||
for j = 2:y-1 | ||
for i= 2:x-1 | ||
val= 4*A(j,i)+2*(A(j,i-1)+A(j,i+1)+A(j+1,i)+A(j-1,i))+A(j+1,i+1)+A(j-1,i+1)+A(j+1,i-1)+A(j-1,i-1); | ||
B(j,i) = val/16; | ||
end | ||
end | ||
endfunction | ||
A = rand(10, 10) * 256; | ||
B = gauss_filter_3_3(A); | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.