Skip to content

Commit

Permalink
Merge pull request #44 from EverlastingBugstopper/avery/add-rust
Browse files Browse the repository at this point in the history
Adds Rust to comment style dropdown
  • Loading branch information
ozh authored Nov 18, 2019
2 parents 705f448 + cbea7ab commit 0c90901
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,18 @@ Press **Create Table** to get something like:

Leading characters can be added by selecting a comment style:

| Style | Characters | Usage |
|-------------|----------------------------------|---------------------------------|
| none | "" | no comment style applied |
| doubleslant | "// " | C++/C#/F#/Java/JavaScript/Swift |
| hash | "# " | Perl/PowerShell/Python/R/Ruby |
| doubledash | "-- " | ada/AppleScript/Haskell/Lua/SQL |
| percent | "% " | MATLAB |
| singlespace | " " (1 space) | MediaWiki |
| quadspace | "    " (4 spaces) | reddit |
| singlequote | "' " (single quote) | VBA |
| rem | "REM " | BASIC/DOS batch file |
| c | "C " | Fortran IV |
| exclamation | "! " | Fortran 90 |
| slantsplat | "/* ... */ " | CSS |
| xml | "<!-- ... -->" | XML |
| Style | Characters | Usage |
|-------------|----------------------------------|--------------------------------------|
| none | "" | no comment style applied |
| doubleslant | "// " | C++/C#/F#/Java/JavaScript/Rust/Swift |
| hash | "# " | Perl/PowerShell/Python/R/Ruby |
| doubledash | "-- " | ada/AppleScript/Haskell/Lua/SQL |
| percent | "% " | MATLAB |
| singlespace | " " (1 space) | MediaWiki |
| quadspace | "    " (4 spaces) | reddit |
| singlequote | "' " (single quote) | VBA |
| rem | "REM " | BASIC/DOS batch file |
| c | "C " | Fortran IV |
| exclamation | "! " | Fortran 90 |
| slantsplat | "/* ... */ " | CSS |
| xml | "<!-- ... -->" | XML |
2 changes: 1 addition & 1 deletion assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function createTable() {
case "none":
break;
case "doubleslant":
// C++/C#/F#/Java/JavaScript/Swift
// C++/C#/F#/Java/JavaScript/Rust/Swift
prefix = "// ";
break;
case "hash":
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2>Input</h2>
<label for="commenting" class="control-label" title="Select a comment style to place to the left of the table">Comment Style:
<select id="commenting" onchange="createTable()">
<option value="none">"" (no comment style applied)</option>
<option value="doubleslant">"// " C++/C#/F#/Java/JavaScript/Swift</option>
<option value="doubleslant">"// " C++/C#/F#/Java/JavaScript/Rust/Swift</option>
<option value="hash">"# " Perl/PowerShell/Python/R/Ruby</option>
<option value="doubledash">"-- " ada/AppleScript/Haskell/Lua/SQL</option>
<option value="percent">"% " MATLAB </option>
Expand Down

0 comments on commit 0c90901

Please sign in to comment.