- Code: Select all
#!/usr/bin/tclsh
at the beginning is a tcl script. Anyone know how I can do this? None of these tcl script files have any extension on them and it is a pain to add it every time I have to edit one.
#!/usr/bin/tclsh{
// if an exception occurs when processing a function, should it be reraised so the user gets feedback? This is really
// only useful to those writing functions. The average user just wants the plugin to work, so let's not reraise the
// exception
"reraise_exceptions": false,
// If you want to have a syntax applied when new files are created, set new_file_syntax to the name of the syntax to use.
// The format is exactly the same as "name" in the rules below. For example, if you want to have a new file use
// JavaScript syntax, set new_file_syntax to 'JavaScript'.
"new_file_syntax": false,
"syntaxes": [
{
"name": "TCL",
"rules": [
{"first_line": "^#!/usr/bin/tclsh"}
]
}
]
}{
// if an exception occurs when processing a function, should it be reraised so the user gets feedback? This is really
// only useful to those writing functions. The average user just wants the plugin to work, so let's not reraise the
// exception
"reraise_exceptions": false,
// If you want to have a syntax applied when new files are created, set new_file_syntax to the name of the syntax to use.
// The format is exactly the same as "name" in the rules below. For example, if you want to have a new file use
// JavaScript syntax, set new_file_syntax to 'JavaScript'.
"new_file_syntax": false,
"syntaxes": [
{
"name": "TCL/Tcl",
"rules": [
{"first_line": ""^#!/.*tclsh""}
]
}
]
}Users browsing this forum: No registered users and 16 guests