Re: [framework-discuss] Codestyle |
[ Thread Index |
Date Index
| More lists.aurorafoss.org/framework-discuss Archives
]
- To: framework-discuss@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [framework-discuss] Codestyle
- From: joao@xxxxxxxxxxxxxx
- Date: Sun, 13 Oct 2019 10:44:50 +0000
- Authentication-results: out.migadu.com; auth=pass (plain)
- Dkim-signature: v=1;a=rsa-sha256;bh=hhjUuMwFsO3dfHOdWs2cWN7po+Dk4iAEXcFleT41UkY=;c=relaxed/simple;d=aurorafoss.org;h=from:subject:date:to;s=default;b=SSzXxVuVRsBfpWX6ROOzUD6u9isDo6Ey7biF+W3JrQ9GNXXLwNbM45kPx84TfK21zsggX8LQcVk2xri7VRle7nxWc6kr/IwA2YCcz9W3phuleyXFW9AmuiOnfHo5rLXeA0XEtS1lviilDnh/ghkG2T5nQZDsAG2npK0oY8vHYCA=
But, for example, in some plataforms, like github, sometimes the aligment in comments if made with tabs, it doesn't align. The way I've been doing is to indent with tabs only the first line, and spaces everything to the right side, this includes comments. It might no be ideal, but it guaranties the aligment for all plataforms.
October 12, 2019 9:35 PM, "Filipe Laíns" <lains@xxxxxxxxxxxxxx> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Examples fixed:
>
> ```
> #define·SOMETHING→ /*·My·comment→ → */
> #define·SOMETHING_ELSE→ /*·Other·comment...→ */
> ```
>
> ```
> void·my_function(int·my_very_long_variable_name_blah_blah_blah,
> → → ·int·my_other_variable);
> ```
>
> `·` are spaces
> `→` are tabs
>
> Thanks,
> Filipe Laíns
> -----BEGIN PGP SIGNATURE-----
>
> iQIzBAEBCAAdFiEE0jW0leqs33gyftiw+JPGdIFqqV0FAl2iOS4ACgkQ+JPGdIFq
> qV0yyBAAgdkETPCxRtsqOX/EVIU7y3LHMsxTkGNNHCFabtwabKadYgS3u5W28xvB
> PbuWtiFmmwVGjRjlMmPhHyfOnhDFKaFb4p6pF+RRvA0P8Ms0rjtYcn+3HWkxSSWR
> jZ1djq49x9usxoVaBEAkalEmv3QzCKQ1zyRC/CzE9PPl+TjzRhzG+Wmk9Z1LVS+/
> t/q/eguvvsbqEXHtZw2E9EjEUmgH+8cWV+7AHtTOp/SaU5cZvUfQ0I7uyU9EbT0P
> W/WLWNOZQUju/CDgaHbkajwx5KsNwWG7k940Q4YdgYOtP72M3VYOMStU6tU0DIQx
> kymDYC9KORjXMz72glYvY2Xczl2hMdVG3vH32bZiPwZXkxiYnsjuQdbv62jJSpAA
> MenZAg81zKKupu13WFtjlk2/Dpq3V4gpUHWUmB2IFP+HYeBZjU19ECoVS3EpDUis
> 5Tefq7WWs6mvCXomSItlDFGXXCZGQyBBZ0a1HRqkE91dT5wUgX0mPg9NOiJNUqFV
> Rd5oEJjp/tpB41u1Jq7k6RkxhAqRAaq+E+KWfCxFuN4gz2zsgvAW4QDa1sOUvcfA
> iFCINmoUgJ+MtVy0ItO5JBSlFGUR0ha5ky2U1QrVmBtdXwZ3XrxpJ3QDF9gzRwxC
> aJ/nF3I3+8W9272FkdbMCEr5BQpQ4lmCGyvqLbrDavY/8vhjWcg=
> =BZCg
> -----END PGP SIGNATURE-----