Replies: 1 comment
-
I solved by manually adding a special set of characters in my code snippet ";;;" at the end of every vba line: and then parsing in javascript the code snippet as it follows:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm striving to build a custom Hubspot Code Block Module using the Prism.js library in order to show VBA code on blog posts.
Highlithing of code seems to work correctly but I have one problem: all the code is fitted on one line.
Let's say I would like to show the following code snippet:
Even with this github editor if I put a code block, line breaks get stripped away.
This is what I see on the editor:
and here's the actuale code snippet, all in one line:
Sub Test() Dim i As Long Dim diag As New ProgressDialogue diag.Configure "Test Progress", "I'm wasting time...", -10000, 10000 diag.Show For i = -10000 To 10000 diag.SetValue i diag.SetStatus "Still wasting time... " & i On Error Resume Next If diag.cancelIsPressed Then Exit For On Error GoTo 0 Next i diag.Hide End Sub
How can I possibly solve this?
Beta Was this translation helpful? Give feedback.
All reactions