Page 1 of 1

We've got source code highlighting!

Posted: Sunday 12th March 2017 2:01pm
by jornmo
Just click the 'gb' button and type some code inbetween, or the 'highlight' button for other languages. Most common languages are supported!
gbHelp.png
gbHelp.png (515.36 KiB) Viewed 5 times
' Gambas module file

Public Title As String

Public Sub Main()

  Dim hClass As Class

  If Application.Args.Count >= 2 Then
    Title = Application.Args[2]
    hClass = Class.Load(Application.Args[1])
    Object.Call(hClass, "Main")
  Else
    Print "Usage: NeHeTutorial Example<N> <Title>"
  Endif

End

Re: We've got source code highlighting!

Posted: Thursday 14th September 2017 3:48pm
by jornmo
In order to be able to have plain text URLs inside code, and not have them parsed by the forum and turned into HTML, remember to tick off "Do not automatically parse URLs", below the editor, before posting.