VBA comment is not Green

ZVI

MrExcel MVP
Joined
Apr 9, 2008
Messages
3,875
Office Version
  1. 2019
  2. 2016
  3. 2010
Platform
  1. Windows
*** deleted ***
Color of VBA comments now is restored to Green - thanks!
 
Hi Vladimir

We didn't restore anything but it is about previewing the post.

If there is no other VBA code posted in the page you are sending reply, VBA colors are not displayed correctly during the preview - because the associated CSS rules that were customized are not loaded yet at that moment (some syntax highlighters such as VBA, M, Excel, are not included in the forum package but we implemented them separately) . However, you will see that it is colored properly as soon as you submit the post / refresh the page. For example, I see the following when I do preview.

1599255265473.png

However, it will be rendered as correctly as below.

VBA Code:
Sub doIt()
'Comment here
Msgbox "ok"
End Sub
 
Hi Suat,

Thanks for the detailed clarification, so this is a feature.
Looks like you are online 24 hours a day, or waking up fast!
:)?

Vlad
 
Thanks for the detailed clarification, so this is a feature.

I can't call it as a feature, it is just better to keep it that way instead loading unnecessary CSS even when it is not necessary. However, now it bugs me since it was asked for the first time (thank you), so I probably can't get a good sleep without finding a proper way to handle that. :ROFLMAO:

Looks like you are online 24 hours a day, or waking up fast!
See my profile title. ?
:)?
 
so I probably can't get a good sleep without finding a proper way to handle that

Ok, done. It is now highlighting properly on preview as well. I can get a good sleep tonight :)

Thanks for bringing this up, Vlad!
 
Smart & Cool - thank you, Suat!
:sleep:(y)
 

Forum statistics

Threads
1,224,862
Messages
6,181,464
Members
453,044
Latest member
rgbenson1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top