Each source code file of a
GPL3-licensed
project should
include a notice*,
as recommended in this section.
For aesthetic reasons, I’ve decided to amend—just a little bit—all of the headers.
And also for any language that accepts an XML-like syntax.
<!DOCTYPE html>
<!-- Copyright (c) <year>, Nebil Kawas García
- This program is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License (GPL) as published by
- the Free Software Foundation, either version 3 of this License,
- or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but without any warranty, without even the implied warranty of
- merchantibility or fitness for a particular purpose.
- See the GNU General Public License for more details.
- You should have received a copy of the GNU GPL along with this program.
- If not, please see <https://www.gnu.org/licenses/#GPL>. -->
<html lang='en'>
<head>
...
For example: Java, JavaScript, Go, Rust, and Swift.
/* Copyright (c) <year>, Nebil Kawas García
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License (GPL) as published by
* the Free Software Foundation, either version 3 of this License,
* or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but without any warranty, without even the implied warranty of
* merchantibility or fitness for a particular purpose.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU GPL along with this program.
* If not, please see <https://www.gnu.org/licenses/#GPL>. */
Using a Python docstring.
"""
Copyright (c) <year>, Nebil Kawas García
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License (GPL) as published by
the Free Software Foundation, either version 3 of this License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but without any warranty, without even the implied warranty of
merchantibility or fitness for a particular purpose.
See the GNU General Public License for more details.
You should have received a copy of the GNU GPL along with this program.
If not, please see <https://www.gnu.org/licenses/#GPL>.
"""
For example: Perl, Python, Ruby, and every Unix shell language.
# Copyright (c) <year>, Nebil Kawas García
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License (GPL) as published by
# the Free Software Foundation, either version 3 of this License,
# or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but without any warranty, without even the implied warranty of
# merchantibility or fitness for a particular purpose.
# See the GNU General Public License for more details.
# You should have received a copy of the GNU GPL along with this program.
# If not, please see <https://www.gnu.org/licenses/#GPL>.
-- Copyright (c) <year>, Nebil Kawas García
-- This program is free software: you can redistribute it and/or modify it
-- under the terms of the GNU General Public License (GPL) as published by
-- the Free Software Foundation, either version 3 of this License,
-- or (at your option) any later version.
-- This program is distributed in the hope that it will be useful,
-- but without any warranty, without even the implied warranty of
-- merchantibility or fitness for a particular purpose.
-- See the GNU General Public License for more details.
-- You should have received a copy of the GNU GPL along with this program.
-- If not, please see <https://www.gnu.org/licenses/#GPL>.
And also for Erlang and Prolog.
% Copyright (c) <year>, Nebil Kawas García
% This program is free software: you can redistribute it and/or modify it
% under the terms of the GNU General Public License (GPL) as published by
% the Free Software Foundation, either version 3 of this License,
% or (at your option) any later version.
% This program is distributed in the hope that it will be useful,
% but without any warranty, without even the implied warranty of
% merchantibility or fitness for a particular purpose.
% See the GNU General Public License for more details.
% You should have received a copy of the GNU GPL along with this program.
% If not, please see <https://www.gnu.org/licenses/#GPL>.
This document is licensed under a Creative Commons 4.0 license.
* Please read this how-to document to get more information about the GPL3 and its (somewhat periphrastic) notices.