We've got source code highlighting!

Website and forum announcements will be posted here.
Post Reply
User avatar
jornmo
Regular
Posts: 220
Joined: Wed Sep 21, 2016 1:19 pm
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
' 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
You do not have the required permissions to view the files attached to this post.
User avatar
jornmo
Regular
Posts: 220
Joined: Wed Sep 21, 2016 1:19 pm
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
Newbie
Posts: 39
Joined: Sat Mar 28, 2020 8:17 am
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