Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
NinjaScript Editor Single Line Comment Color
Collapse
X
-
NinjaScript Editor Single Line Comment Color
Is there a way to change the NinjaScript Editor Single Line Comment color from gray to green to make code comments more visible over the black background, other than using triple slash characters to make all comments XML Documentation Comments? If not, I propose either making the Single Line Comment color user-selectable or permanently changing it to green.Tags: None
- Likes 1
-
caveat_lector You might want to check out using the free VSCode as your editor instead of NT's in-built one. That's what I do now. The syntax highlighting is a gift!
-
Hello caveat_lector,
Thanks for your post.
This would be controlled by the Skin. You can open the skin file under Documents\NinjaTrader\templates\Skins\YourSkin\Blu ePrint.xaml with a text editor like Notepad and change the following line to a different hexadecimal color. If you Google "Hex Color Picker" you can use a tool to pick hexadecimal color codes.
<SolidColorBrush po:Freeze="true" x:Key="NinjaScriptEditorCommentForeground" Color="#7B7466" />
I would also recommend copying the skin and making your modifications in this new skin so your changes do not get overwritten with updates to the platform. New skin items may be added, so you need to keep your skin current with any new keys that are added. I would suggest using a diff utility to quickly compare your skin XAML to another skin so you can identify those change. A publicly available diff utility can be found below and more robust free utilities can be found online as well.
Compare text, files, and code (e.g. json, xml) to find differences with Diffchecker online for free! Use our desktop app for private, offline diffs.
We look forward to assisting.
Comment
-
I made a custom skin and changed the Comment color as Jim instructed. However, it will be a nuisance keeping it synchronized with NinjaTrader updates over time.
pjsmith, thanks for reminding me about Visual Studio Code. I installed it a couple years ago while working on something else and had forgotten about it. Are there any special issues associated with using it to develop, test and edit NinjaScript code? I often use Notepad++ for miscellaneous coding and have wondered about using it. If VSCode is usable I suppose Notepad++ is also.
One way or another I want to move to something else due to continual frustrations with the NinjaScript editor.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
72 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
44 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
26 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
30 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
61 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment