Skip to main content
Commonmark migration
Source Link

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

 

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

 

What is syntax highlighting and how does it work?

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

 

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

 

What is syntax highlighting and how does it work?

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

What is syntax highlighting and how does it work?

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax HighlightingStack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

What is syntax highlighting and how does it work?

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

What is syntax highlighting and how does it work?

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

What is syntax highlighting and how does it work?

replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/
Source Link

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

What is syntax highlighting and how does it work?What is syntax highlighting and how does it work?

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

What is syntax highlighting and how does it work?

Syntax Highlighting with “Code Prettify”

This is now implemented. See Stack Overflow’s help on Syntax Highlighting.

Specifying a language for syntax highlighting

Besides tag inferences (a recent change), you can manually specify a language as a hint to Google Code Prettify.

Here’s how:

<!-- language: «lang-or-tag-here» -->

    «code goes here»

«more text»

<!-- language: «lang-or-tag-here» -->

    «code goes here»

You may use either a tag or a prettify language code. Prettify language codes are guaranteed to work, regardless of what language the tag happens to be set to.

Available Language Hints Moved

Due to several lists of available hints existing throughout Meta, the entire list has been consolidated and moved to the following FAQ:

What is syntax highlighting and how does it work?

Updated link to prettify repository
Source Link
Loading
Fixup of bad MSO links to MSE links migration
Source Link
Loading
Fixup of bad MSO links to MSE links migration
Source Link
Loading
Migration of MSO links to MSE links
Source Link
Loading
deleted 516 characters in body
Source Link
animuson StaffMod
  • 190.4k
  • 38
  • 584
  • 854
Loading
Add lang-python
Source Link
Loading
added 14 characters in body; Post Made Community Wiki
Source Link
Manishearth
  • 79.3k
  • 26
  • 199
  • 368
Loading
Added headings, tweaked formatting (for easier scanning of content)
Source Link
Loading
Added new pascal language, see http://meta.stackoverflow.com/a/171673/179541
Source Link
Loading
Rollback to Revision 8
Source Link
Adam Lear StaffMod
  • 160.1k
  • 45
  • 501
  • 690
Loading
added 69 characters in body
Source Link
Jeff Atwood
  • 311.4k
  • 107
  • 889
  • 1.3k
Loading
added 179 characters in body
Source Link
Jeff Atwood
  • 311.4k
  • 107
  • 889
  • 1.3k
Loading
added 480 characters in body
Source Link
Jeff Atwood
  • 311.4k
  • 107
  • 889
  • 1.3k
Loading
this takes in tags, not prettify classes.
Source Link
Kevin Montrose
  • 60.2k
  • 13
  • 154
  • 199
Loading
deleted 642 characters in body
Source Link
Jeff Atwood
  • 311.4k
  • 107
  • 889
  • 1.3k
Loading
deleted 114 characters in body
Source Link
Jeff Atwood
  • 311.4k
  • 107
  • 889
  • 1.3k
Loading
Source Link
Jeff Atwood
  • 311.4k
  • 107
  • 889
  • 1.3k
Loading