This extension provides syntax highlighting for the pseudocode language as described by "Starting Out with Programming Logic and Design" Sixth Edition by Tony Gaddis, for Visual Studio Code.
Designed for readability and clarity, this language is perfect for students, educators, and algorithm design.
- Keyword highlighting:
Function,End Function,If,Then,Else,While,End While, etc. - Data types: Highlights built-in types like
Integer,String,Real, andBoolean. - Function declarations and calls:
- Example:
Function Integer calculateSum(a, b) - Example:
Call calculateSum(5, 10)
- Example:
- Control structures:
If,Else,Select Case,For,For Each,Do,While,Endstatements. - Variable declaration and assignment:
Declare Integer countSet count = 10
- Constants:
- Example:
Constant Integer MAX_VALUE = 100
- Example:
- Library functions:
Display,Input - Operators:
- Logical:
AND,OR,NOT - Math:
+,-,*,/,MOD,^ - Relational:
==,!=,<,>,<=,>=
- Logical:
- String and Boolean literals
- Comment support with
// - Nested syntax highlighting within functions, modules, and calls
- Modular structure support:
Module,End Module
Example of function highlighting:
Function Integer add(Integer a, Integer b)
Return a + b
End Function
No additional dependencies required. Just locally install and start coding!
Though this extension is not published to the Visual Studio Code Marketplace, you can still install and use it locally by following these steps:
Open this repository in VS Code and run the following vsce command package the extension:
vsce package
This will generate a .vsix file that will look something like this: pseudocode-1.0.0.vsix
Now that we've generated the .vsix file, we will now need to run a command to install the extension locally. There are two ways to do this:
- Run a command with that file name:
code --install-extension pseudocode-1.0.0.vsix
- Open VS Code's Command Palette and type
Install from VSIXand select the.vsixfile you just generated.
This extension does not contribute any VS Code settings at this time.
- Some advanced edge cases in nested syntax may not be fully highlighted.
Returnstatements are only recognized inside functions.
Initial release with foundational highlighting.
Adds syntax highlighting for control flow keywords nested inside Select Cases.
Enjoy using the Pseudocode extension!