# Generating banners to include in source code

**URL:** <https://forum.gitea.com/t/generating-banners-to-include-in-source-code/4528>\
**Category:** Install/Maintain/Configure\
**Created:** [January 30, 2022, 5:01pm UTC](https://forum.gitea.com/t/generating-banners-to-include-in-source-code/4528 "2022-01-30T17:01:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dachary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dachary/32/4990_2.png) [@dachary](https://forum.gitea.com/u/dachary)\
**Post date:** [January 30, 2022, 5:01pm UTC](https://forum.gitea.com/t/generating-banners-to-include-in-source-code/4528/1 "2022-01-30T17:01:43Z")

</div>

Bonjour,

There are cute banners to separate sections of code in the Gitea sources, such as [this one](https://github.com/go-gitea/gitea/blob/e5ec7a086f649751f4496e69ea64ba18aecdb73d/models/error.go#L1262-L1267):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/a/a8003a7bc90879ec60676556d8e47ec3cde4bd1d.png)

They can be generated as follows:

```auto
$ sudo apt-get install figlet xclip
$ git clone https://github.com/xero/figlet-fonts
$ figlet -f $(pwd)/figlet-fonts/Graffiti -w 300 ForeignReference | sed -e's+^+// +' - | xclip -sel clip -in

```

This information should be added somewhere near the [code formatting](https://docs.gitea.io/en-us/hacking-on-gitea/#formatting-code-analysis-and-spell-check) recommendations in the documentation.

Enjoy!

---

<div class="post-metadata">

**Author:** ![dachary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dachary/32/4990_2.png) [@dachary](https://forum.gitea.com/u/dachary)\
**Post date:** [January 30, 2022, 9:51pm UTC](https://forum.gitea.com/t/generating-banners-to-include-in-source-code/4528/2 "2022-01-30T21:51:00Z")

</div>

> <https://github.com/go-gitea/gitea/pull/18469/files>
>
> \* Explain how to title your Backport PR
> \* Advise that the first comment in a PR… should explain the PR
> \* Include information about BREAKING changes
> \* Include information about backports/frontports
> \* Add reference command for creating backports
> \* Add reference commandline for creating large characters
> \* Add information about updating docs/config.yaml
> \* Update year in the copyright
> 
> Signed-off-by: Andrew Thornton \<art27@cantab.net\>

fixed that.
