Portál AbcLinuxu, 6. května 2024 02:54


Dotaz: geany - defaultny subor

24.3.2010 22:49 johnnycage | skóre: 5
geany - defaultny subor
Přečteno: 145×
Odpovědět | Admin
Zdravim.

Na tvorbu programov pouzivam Geany, konkretne verziu 0.18.1. Ked si vyberiem niektory z preddefinovanych suborov, napr. subor C++, automaticky sa mi zobrazi aj urcity kod, resp. subor ma urcitu defaultnu strukturu. V pripade C++ to je tento kod: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------
//      untitled.cpp
//      
//      Copyright 2010 johnnycage
//      
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the 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
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//      
//      You should have received a copy of the GNU General Public License
//      along with this program; if not, write to the Free Software
//      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
//      MA 02110-1301, USA.

#include

int main(int argc, char** argv)
{
	
	return 0;
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Zaujimalo by ma, ako by som ten subor mohol zmenit, resp. aby mal novootvoreny subor C++ napriklad takuto strukturu:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Copyright 2010 johnnycage

#include

using namespace std;

int main() {

  return 0;
}
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Lenovo G550, Debian Testing 64bit, Kernel 3.1.0, GNOME 3.0.2

Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

24.3.2010 23:27 D.mostek | skóre: 4
Rozbalit Rozbalit vše Re: geany - defaultny subor
Odpovědět | | Sbalit | Link | Blokovat | Admin
Tyto šablony jsou umístěny v
~/.config/geany/templates/file
Konkrétně je potřeba upravit soubor
~/.config/geany/templates/fileheader
a odstranit z něj zmínku o licenci.
Řešení 1× (johnnycage (tazatel))
24.3.2010 23:30 D.mostek | skóre: 4
Rozbalit Rozbalit vše Re: geany - defaultny subor
Ta první cesta je jen
~/.config/geany/templates/
poté jsou tam soubory s příponamy podle jednotlivých jazyků
filetype.c
filetype.java
filetype.php     
filetype.cpp
25.3.2010 13:16 johnnycage | skóre: 5
Rozbalit Rozbalit vše Re: geany - defaultny subor
Super, diky, to je presne ono. Pozeral som vsetky mozne subory, ktore patria ku Geany, ale v domovskom adresare ma nenapadlo popozerat sa :)
Lenovo G550, Debian Testing 64bit, Kernel 3.1.0, GNOME 3.0.2
24.3.2010 23:28 D.mostek | skóre: 4
Rozbalit Rozbalit vše Re: geany - defaultny subor
Odpovědět | | Sbalit | Link | Blokovat | Admin
Rozsáhlý popis jak ny tyto šablony je zde

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.