Difference between revisions of "Source Code Help"
Jump to navigation
Jump to search
Joelmartin (talk | contribs) m (→Other markup) |
Joelmartin (talk | contribs) |
||
Line 139: | Line 139: | ||
}} | }} | ||
</blockquote> | </blockquote> | ||
+ | |||
=== Other markup === | === Other markup === | ||
<blockquote> | <blockquote> |
Revision as of 03:56, 14 December 2019
Source code Publishing
The engineering focus of this wiki is centered on information sharing which includes publishing a voluminous amount of computer code related to Robonation Projects that the Engineering Club focuses on.
Source code Display
The Pygments library installed in this wiki provides support for hundreds of computer languages and file formats.</translate>
Code Language Example
<source lang="csharp"> // Hello World in Microsoft C# ("C-Sharp"). using System; class HelloWorld { public static int Main(String[] args) { Console.WriteLine("Hello, World!"); return 0; } } </source>
Results in:
// Hello World in Microsoft C# ("C-Sharp").
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
Programming languages
- ActionScript
- Ada
- ANTLR
- AppleScript
- Assembly
- Asymptote
- Awk
- Befunge
- Boo
- C / C++
- C#
- Clojure
- CoffeeScript
- ColdFusion
- Common Lisp
- Coq
- Cryptol
- Crystal
- Cython
- D
- Dart
- Delphi
- Dylan
- Elm
- Erlang
- Ezhil
- Factor
- Fancy
- Fortran
- F#
- GAP
- Gherkin (Cucumber)
- GL shaders
- Groovy
- Haskell
- IDL
- Io
- Java
- JavaScript
- Lasso
- LLVM
- Logtalk
- Lua
- Matlab
- MiniD
- Modelica
- Modula-2
- MuPad
- Nemerle
- Nimrod
- Objective-C
- Objective-J
- Octave
- OCaml
- PHP
- Perl
- PovRay
- PostScript
- PowerShell
- Prolog
- Python 2.x and 3.x
- REBOL
- Red
- Redcode
- Ruby
- Rust
- S, S-Plus and R
- Scala
- Scheme
- Scilab
- Smalltalk
- SNOBOL
- Tcl
- Vala
- Verilog
- VHDL
- Visual Basic.NET
- Visual FoxPro
- XQuery
- Zephir
Template languages
- Cheetah templates
- Django / Jinja templates
- ERB
- Genshi
- JSP
- Myghty
- Mako
- Smarty templates
- Tea
Other markup
- Apache config files
- Bash shell scripts
- BBCode
- CMake
- CSS
- Debian control files
- Diff files
- DTD
- Gettext catalogs
- Gnuplot script
- Groff markup
- HTML
- HTTP sessions
- INI-style config files
- IRC logs (irssi style)
- JSON
- Lighttpd config files
- Makefiles
- MoinMoin/Trac Wiki markup
- MySQL
- Nginx config files
- POV-Ray scenes
- Ragel
- Redcode
- ReST
- Robot Framework
- RPM spec files
- SQL
- Squid configuration
- TeX
- tcsh
- Vim Script
- Windows batch files
- XML
- XSLT
- YAML
For accurate language codes, see complete details in the Pygments document and there are some mappings for some language names which were supported by GeSHi (full list).
Pygments does not yet provide a "wikitext" or "mediawiki" lexer ( Use "html", "xml", or "http://pygments.org/docs/lexers/#pygments.lexers.markup.MoinWikiLexer moin]" instead.
Below is a partial list of languages that GeSHi could highlight, with strike-through for languages no longer supported after the switch to Pygments.
Previously supported lexers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|