回复:JSL 文本编辑器颜色主题@B1234 ,
这听起来像是应用这些颜色偏好的正确方法,所以我不确定会发生什么。 你能确保在保存“JMPStyles.PFS”文件时 JMP 没有打开吗? 关闭时 JMP 可能会覆盖该文件。
你能升级到 JMP 15 吗? 对深色编辑器主题的支持更好,更容易应用。
-贾斯汀
回复:JSL 文本编辑器颜色主题你好@贾斯汀奇尔顿,
我正在尝试按照您的指示进行操作,但我一定是做错了什么,因为我的脚本背景仍然是白色的!
我将您发布的脚本文本复制并粘贴到 .jsl 脚本文件中,并将其命名为“JMPStyles.PFS”。 我已将其保存在“%AppData%\Roaming\SAS\JMP\14”位置。 我已经重述了 JMP 和我的电脑。
关于我哪里出错的任何想法?
回复:JSL 文本编辑器颜色主题 - 状态更改为:已交付JMP 15 支持 Windows 和 Mac 上的浅色和深色模式。
回复:JSL 文本编辑器颜色主题由于这个请求以及我们过去收到的其他请求,JMP Development 目前正致力于在 JMP 15 时间框架内添加此功能。 JMP 15 将于 2019 年秋季上市。
回复:JSL 文本编辑器颜色主题作为后续行动 - 在 Mac 上,您还可以将 PFS 文件放在 /Library/Application Support/JMP/ 中,它适用于您可能拥有的所有版本(在 EA15 出现时很方便)。 而且,奖金! Application Builder 脚本选项卡也继承了更改!
米
回复:JSL 文本编辑器颜色主题很好——谢谢丹!
回复:JSL 文本编辑器颜色主题这也适用于 Mac。 转到 -> 转到文件夹 -> ~/Library/JMP/14。 然后,您可以添加 Justin 上面的 JMPStyles.PFS 文件。回复:JSL 文本编辑器颜色主题查看我上面更新的帖子。 我为看起来不错的日志添加了颜色。
这是它在我的电脑上的截图:

回复:JSL 文本编辑器颜色主题感谢你把事情弄清楚,贾斯汀! 这是一个非常好的配色方案。
米
回复:JSL 文本编辑器颜色主题哇谢谢!我确实期待将来有更顺利的解决方案,但这让我和我的眼睛都超级开心!我的颜色略有不同,但这可能是 b/c 我仍在使用 JMP 13(或者可能是 Windows 7?)。B/c 不难看到光标,因为这个灰色要浅得多。但如果将来包含主题,请确保也更改光标颜色!

我复制了适用于日志的代码,但不确定如何处理以下值:日志提交、日志输出、日志输出开始、日志输出结束或调用提示?这并不重要,我非常感谢您的反馈。
回复:JSL 文本编辑器颜色主题你好@msharp ,
脚本编辑器颜色实际上在名为 JMPStyles.PFS 的首选项文件中管理,不能使用 Get Preferences() 检索或使用 Set Preferences() 设置。
我已经完成并创建了如下所示的深色主题:

不幸的是,这个主题的缺点是闪烁的文本光标仍然是黑色的,很难看清。
我附上了这个主题的 JMPStyles.PFS 文件。 您可以将此文件放在 Windows 上的“%AppData%\Roaming\SAS\JMP\14”,以便在重新启动 JMP 后应用主题。
但是,我意识到这不是一个完美的解决方案,我会将其传递给我们的开发团队以供 JMP 未来版本审核。
谢谢,
贾斯汀奇尔顿
JMP测试
编辑:我现在意识到这些评论不允许附加文件。 我已经包含了您可以包含在下面的 JMPStyles.PFS 文件中的文本。
//*** Generated Text, Editing this incorrectly may risk not being able to start JMP ***
Styles(
JSL(
Default Enabled(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Default Disabled(
Foreground Color( "Medium Light Gray" ),
Background Color( "Medium Dark Gray" )
),
Block Comment(
Foreground Color( "Light Green" ),
Background Color( "Medium Dark Gray" )
),
Nested Block Comment(
Foreground Color( "Light Green" ),
Background Color( "Medium Dark Gray" )
),
Line Comment(
Foreground Color( "Light Green" ),
Background Color( "Medium Dark Gray" )
),
Brace(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Date(
Foreground Color( "Medium Light YellowGreen" ),
Background Color( "Medium Dark Gray" )
),
Error( Background Color( "Medium Dark Gray" ) ),
Plain Text(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Unknown(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Identifier(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Message(
Foreground Color( "Light BlueCyan" ),
Background Color( "Medium Dark Gray" )
),
Message Unknown(
Foreground Color( "Medium Light Red" ),
Background Color( "Medium Dark Gray" )
),
Number(
Foreground Color( "Medium Light Green" ),
Background Color( "Medium Dark Gray" )
),
Operator Name(
Foreground Color( "Light BlueCyan" ),
Background Color( "Medium Dark Gray" )
),
Platform Name(
Foreground Color( "Medium Light Orange" ),
Background Color( "Medium Dark Gray" )
),
Operator Symbol(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
String(
Foreground Color( "Light Purple" ),
Background Color( "Medium Dark Gray" )
),
Block String(
Foreground Color( "Medium Light Purple" ),
Background Color( "Medium Dark Gray" )
),
Annotation Note(
Foreground Color( "Medium Dark Gray" ),
Background Color( "Medium Dark Gray" )
),
Annotation Warn(
Foreground Color( "White" ),
Background Color( "Gray" )
),
Annotation Error(
Foreground Color( "Light Fuchsia" ),
Background Color( "Medium Dark Gray" )
),
Annotation Fatal(
Foreground Color( "Light Fuchsia" ),
Background Color( "Medium Dark Gray" )
),
Line Number(
Foreground Color( "White" ),
Background Color( "Gray" )
),
Brace Light(
Foreground Color( "Light BlueGreen" ),
Background Color( "Medium Dark Gray" )
),
Bad Brace(
Foreground Color( "Light Red" ),
Background Color( "Medium Dark Gray" )
),
Control Char(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Indent Guide(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
)
),
Log(
Default Enabled(
Foreground Color( "White" ),
Background Color( "Gray" )
),
Default Disabled(
Foreground Color( "Medium Light Gray" ),
Background Color( "Gray" )
),
Block Comment(
Foreground Color( "Light Green" ),
Background Color( "Medium Dark Gray" )
),
Nested Block Comment(
Foreground Color( "Light Green" ),
Background Color( "Medium Dark Gray" )
),
Line Comment(
Foreground Color( "Light Green" ),
Background Color( "Medium Dark Gray" )
),
Default Background(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Log Submit(
Foreground Color( "White" ),
Background Color( "Medium Dark Gray" )
),
Log Output(
Bold( 0 ),
Foreground Color( "White" ),
Background Color( "Gray" )
),
Log Output Start(
Foreground Color( "Medium Light Gray" ),
Background Color( "Gray" )
),
Log Output End(
Foreground Color( "Medium Light Gray" ),
Background Color( "Gray" )
),
Line Number(
Foreground Color( "White" ),
Background Color( "Medium Light Gray" )
),
Brace Light(
Bold( 0 ),
Foreground Color( "Light BlueGreen" ),
Background Color( "Medium Dark Gray" )
),
Bad Brace(
Bold( 0 ),
Foreground Color( "Light Red" ),
Background Color( "Medium Dark Gray" )
),
Control Char(
Foreground Color( "White" ),
Background Color( "Gray" )
),
Indent Guide( Background Color( "Gray" ) )
)
)
回复:JSL 文本编辑器颜色主题感谢您分享代码。我花了一些时间尝试根据偏好更改颜色,但新系统太复杂了。更改颜色和使用“获取首选项”也没有给我任何有价值的信息。由于我不知道 JSL 文本编辑器对象的结构,因此没有它的文档,并且 Get Preferences 没有返回任何有用的信息,我相信我无法独自完成这项任务。
回复:JSL 文本编辑器颜色主题这是我以前的 - 可能需要一些修补才能让它工作。 看起来每个元素现在都有两种颜色(前景和背景),但这应该可以帮助您入门。
晒黑
Preferences(
Script Editor Settings(
Text Color( {131, 148, 150} ),
Back Color( {0, 43, 54} ),
Disabled Back Color( {0, 43, 54} ),
Comment Color( {133, 153, 0} ),
String Color( {88, 110, 117} ),
Number Color( {42, 161, 152} ),
Operator Symbol Color( {88, 110, 117} ),
Operator Name Color( {38, 139, 210} ),
Identifier Color( {88, 110, 117} ),
Brace Color( {203, 75, 22} ),
Guide Color( {88, 110, 117} ),
Show Line Numbers( 1 ),
Wrap Text( 1 ),
Color Unknown Object Messages( 1 ),
Save And Restore Document State Information( 1 ),
JSL Code Folding( 1 ),
JSL Code Folding Marker( 2 ),
Allow Additional Code Folding Keywords( 1 )
)
);
日光灯
Preferences(
Script Editor Settings(
Text Color( {101, 123, 131} ),
Back Color( {253, 246, 227} ),
Disabled Back Color( {253, 246, 227} ),
Comment Color( {133, 153, 0} ),
String Color( {147, 161, 161} ),
Number Color( {42, 161, 152} ),
Operator Symbol Color( {88, 110, 117} ),
Operator Name Color( {38, 139, 210} ),
Identifier Color( {88, 110, 117} ),
Brace Color( {203, 75, 22} ),
Guide Color( {147, 161, 161} ),
Show Line Numbers( 1 ),
Wrap Text( 1 ),
Color Unknown Object Messages( 1 ),
Save And Restore Document State Information( 1 ),
JSL Code Folding( 1 ),
JSL Code Folding Marker( 2 ),
Allow Additional Code Folding Keywords( 1 )
)
);回复:JSL 文本编辑器颜色主题谢谢@MikeD_Anderson但我知道这一点。然而,界面很笨重,需要更改每个细节——这很难构成主题。如果您可以分享 JSL 代码以重新创建 Solarized Dark 主题,我将不胜感激。
回复:JSL 文本编辑器颜色主题在 14(我认为也是 13)中,您可以在首选项 > 脚本编辑器下更改主题中的元素。 有一次我设置了 Solarized 主题(关联).
JSL 文本编辑器颜色主题我的同事嘲笑我在明亮的背景下编码。我可以使用其他编辑器,如 Sublime 或 Atom,但 JSL 文本编辑器确实提供了许多方便的功能。不管怎样,我们可以添加额外的主题吗?最好是深色的,对眼睛更舒服。

大规模定制