We've got source code highlighting!

Feel free to talk about non programming issues here.
Post Reply
User avatar
jornmo
Site Admin
Posts: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

We've got source code highlighting!

Post 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 51156 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: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: We've got source code highlighting!

Post 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.
User avatar
Serban
Posts: 39
Joined: Saturday 28th March 2020 8:17am
Location: Alexandria
Contact:

Re: We've got source code highlighting!

Post by Serban »

'---
'--- Thanks for the tip!
'--- This is really useful!
FMain_Resize()
FMain.TextArea1.Text="This is awsome!"
FMain.TextArea1.Foreground="&H00FF00"
Oooooh my God! That looks fabulous!
The only thing necessary for the triumph of evil is for good men to do nothing.”― Edmund Burke;
It's easy to die for an idea. It is way harder to LIVE for your idea! (Me)
Post Reply