Skip to main content
replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/
Source Link

Scavenger's answeranswer is a good idea, but # might be something that is valid in the code like a pre-processor command in C++ that can be part of the actual code sample.

I suggest to have something that is specified before the code block in a special way. The code block is indented with 4 spaces, so the language specifier could be indented 3 spaces (and only mean something when appearing immediately before a code block). This follows the simplicity in the markup rules that already exists.

    VB.NET
     Dim myVariable As String 'Here is the first code line
     myVariable = "Hello world"

Scavenger's answer is a good idea, but # might be something that is valid in the code like a pre-processor command in C++ that can be part of the actual code sample.

I suggest to have something that is specified before the code block in a special way. The code block is indented with 4 spaces, so the language specifier could be indented 3 spaces (and only mean something when appearing immediately before a code block). This follows the simplicity in the markup rules that already exists.

    VB.NET
     Dim myVariable As String 'Here is the first code line
     myVariable = "Hello world"

Scavenger's answer is a good idea, but # might be something that is valid in the code like a pre-processor command in C++ that can be part of the actual code sample.

I suggest to have something that is specified before the code block in a special way. The code block is indented with 4 spaces, so the language specifier could be indented 3 spaces (and only mean something when appearing immediately before a code block). This follows the simplicity in the markup rules that already exists.

    VB.NET
     Dim myVariable As String 'Here is the first code line
     myVariable = "Hello world"

Fixup of bad MSO links to MSE links migration
Source Link
Fixup of bad MSO links to MSE links migration
Source Link

Scavenger's answer is a good idea, but # might be something that is valid in the code like a pre-processor command in C++ that can be part of the actual code sample.

I suggest to have something that is specified before the code block in a special way. The code block is indented with 4 spaces, so the language specifier could be indented 3 spaces (and only mean something when appearing immediately before a code block). This follows the simplicity in the markup rules that already exists.

  

   VB    VB.NET
     Dim
     Dim myVariable As String 'Here is the first code line
     myVariable
     myVariable = "Hello world""Hello world"

Scavenger's answer is a good idea, but # might be something that is valid in the code like a pre-processor command in C++ that can be part of the actual code sample.

I suggest to have something that is specified before the code block in a special way. The code block is indented with 4 spaces, so the language specifier could be indented 3 spaces (and only mean something when appearing immediately before a code block). This follows the simplicity in the markup rules that already exists.

 

   VB.NET
     Dim myVariable As String 'Here is the first code line
     myVariable = "Hello world"

Scavenger's answer is a good idea, but # might be something that is valid in the code like a pre-processor command in C++ that can be part of the actual code sample.

I suggest to have something that is specified before the code block in a special way. The code block is indented with 4 spaces, so the language specifier could be indented 3 spaces (and only mean something when appearing immediately before a code block). This follows the simplicity in the markup rules that already exists.

 

    VB.NET
     Dim myVariable As String 'Here is the first code line
     myVariable = "Hello world"

Migration of MSO links to MSE links
Source Link
Loading
Post Undeleted by awe
Post Deleted by awe
"I suggest" instead of "it would be better"
Source Link
awe
  • 769
  • 6
  • 14
Loading
Source Link
awe
  • 769
  • 6
  • 14
Loading