Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ The created files come with blank description in their comment headers.
* Logo
* Lua
* Nemerle
* Nim
* ObjectiveC
* Pawn
* Pascal
Expand All @@ -385,6 +386,7 @@ The created files come with blank description in their comment headers.
* VisualBasic
* Xml
* Yaml
* Zig

Whether you enter a different programming language from the list above or an unknown file into the program, it will ask you for the inline comment character to create the header commentary. Otherwise, the comment header is omitted.

Expand Down
22 changes: 22 additions & 0 deletions templates/nim.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
!!cnh {"suffix":"nim"}
#[
**********************************************************************************************************
File: {{ cnh_file }}
Author: {{ cnh_name }}
Created: {{ cnh_date }}
{% if exists("cnh_has_copyright") %}
{{ cnh_has_copyright }}
{% endif %}
{% if exists("cnh_description") %}
Description: {{ cnh_description }}
{% endif %}
**********************************************************************************************************
]#


proc main() =
echo "Hello, world!"


when isMainModule:
main()
21 changes: 21 additions & 0 deletions templates/zig.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
!!cnh {"suffix":"zig"}
/*
**********************************************************************************************************
File: {{ cnh_file }}
Author: {{ cnh_name }}
Created: {{ cnh_date }}
{% if exists("cnh_has_copyright") %}
{{ cnh_has_copyright }}
{% endif %}
{% if exists("cnh_description") %}
Description: {{ cnh_description }}
{% endif %}
**********************************************************************************************************
*/


const std = @import("std");

pub fn main() !void {
std.debug.print("Hello, World!\n", .{});
}