We've got source code highlighting!

Post Reply
User avatar
jornmo
Site Admin
Posts: 127
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

We've got source code highlighting!

Post by jornmo » Sunday 12th March 2017 2:01pm

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 82 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

User avatar
jornmo
Site Admin
Posts: 127
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: We've got source code highlighting!

Post by jornmo » Thursday 14th September 2017 3:48pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest