.CR 文件扩展名

Crystal Source Code

开发者 Manas Technology Solutions
受欢迎程度
3.2  |  11 
 

什么是 CR 文件?

A CR file is a source code file written in the Crystal programming language. It contains code that is meant to be compiled using the Crystal compiler. CR files can be opened and edited in any source code editor.

更多信息

在 Microsoft Visual Studio Code with Crystal Language extension 中打开的 .cr 文件截图
在 Microsoft Visual Studio Code with Crystal Language extension 中打开的 CR 文件

Crystal is a general object-oriented programming language that is based on Ruby. Unlike Ruby, however, Crystal is a compiled language. This means the language's source code files must be compiled before the code they contain can be executed.

Developers typically save Crystal source code in plain text files that use the .cr file extension. Saving Crystal source code files with the .cr extension allows source code editors that recognize the Crystal programming language to highlight the language's syntax correctly.

如何打开 CR 文件

You can open and edit a CR file in any text or source code editor, such as GitHub Atom (cross-platform) or Microsoft Visual Studio Code (cross-platform). Most source code editors will allow you to install an extension that highlights Crystal syntax, making CR files easier to edit.

If you want to quickly compile and run the code a CR file contains, you can do so using the Online Playgrounds available on the language's GitHub page (linked below).

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 CR 文件的程序

分类: 开发者
更新时间: 2021-06-16

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Crystal Source Code 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们