Salesforce coding lessons for the 99%
Finally, Apex tutorials for point-and-click admins! Written by a self-taught Google engineer.
  • Beginner Tutorials
    • Apex
    • Certifications
    • Career Info
    • Technical Architect
    • Visualforce
    • Videos
  • Apex Academy
  • Success Stories
  • About Me
  • Misc
    • Mailbag
    • Challenges
    • Links
    • Login to my Org
Follow @dvdkliuor SUBSCRIBE!

What do all the colors mean in the code?

May 16, 2013

Syntax highlighting is commonly used when displaying code to make it more readable.

I’ve taken it one step further to make things easier for you to learn!

  • Green highlighted lines means it’s important! The deeper the green, the more useful the code. Skim the code without any highlights, that’s just boilerplate code.
  • Blue colored text are Salesforce reserved variables or sObjects. They have useful functionality that I will teach you to master!
  • Purple colored text are variables that we define. We can name them anything we want!
  • // Comments begin with a doubleslash, and they’re frequently used in code to help explain what you’re doing. Salesforce will ignore these lines when executing Apex.
  • ‘Strings’, also known as “text”, are wrapped in single quotes. Strings need to be differentiated from numbers, for example, because ‘3’ + ‘3’ = ’33’ and 3 + 3 = 6.
2 Comments
Anonymous
January 1, 2023 @ 7:51 pm

ᏦᎠᏢKING

Reply
  • Pingback: Oakley Jupiter Carbon

  • Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *


    *

    *

    Theme: Simple Style by Fimply