Goodbeye Notepad clones Welcome Geany!!!
Go to page 1, 2  Next  :| |:
-> Chit-Chat

#1: Goodbeye Notepad clones Welcome Geany!!! Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Wed Mar 12, 2008 9:14 am
    ----
Nothing more to say then that this is the nicest editor around.

geany.uvena.de/

#2: Re: Goodbeye Notepad clones Welcome Geany!!! Author: layingback PostPosted: Wed Mar 12, 2008 3:58 pm
    ----
Thanks. At quick glance it may now be possible to drop Notepad++ under Wine! Smile

And it's available under Ubuntu Ad/Remove/Synaptic - but listed as an IDE which is why I completely missed it I guess ...

#3: Re: Goodbeye Notepad clones Welcome Geany!!! Author: WebSiteGuru PostPosted: Wed Mar 12, 2008 5:34 pm
    ----
Cool bean, Now I can use something that have line number. Very Happy

Hopefully it will also be under PCLinuxOS Synaptic, Wink I just changed Distro from Ubuntu to PCLinuxOS. Very Happy

#4: Re: Goodbeye Notepad clones Welcome Geany!!! Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Wed Mar 12, 2008 6:14 pm
    ----
It's small, fast and has code completion!

I never knew these features could be in such fast programs.

Not to mention that is cross-platform so you always have the same syntax highlighting and tricks on all platforms.
That just "feels" comfortable no matter if i boot Windows, CentOS or my Fedora 8.

I should build tags files for theme designers and php coders.
That way any Dragonfly user can easily program with the Dragonfly specific functions and constructs on any platform using Geany.

#5: Re: Goodbeye Notepad clones Welcome Geany!!! Author: layingback PostPosted: Wed Mar 12, 2008 6:30 pm
    ----
DJ Maze wrote:
I should build tags files for theme designers and php coders.
That way any Dragonfly user can easily program with the Dragonfly specific functions and constructs on any platform using Geany.

Now that would be cool!

(Looks as if the Dragonfly standard template comment text at start of module could be similarly defined.)

Looking at website, I think I need to upgrade to 1.1.3 asap for the new features. Smile

#6: Re: Goodbeye Notepad clones Welcome Geany!!! Author: PhoenixLocation: Netizen PostPosted: Wed Mar 12, 2008 9:27 pm
    ----
Geany wrote:
(almost) full build support on Windows

#7: Re: Goodbeye Notepad clones Welcome Geany!!! Author: JG6_oddballLocation: chicago,usa PostPosted: Sat Mar 29, 2008 10:46 pm
    ----
wow, thnx i just installed it... I love Kubuntu Smile

S!

#8: Re: Goodbeye Notepad clones Welcome Geany!!! Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Tue Jun 03, 2008 11:53 am
    ----
layingback wrote:
but listed as an IDE which is why I completely missed it I guess ...
Yeah same for me Cool

#9: Re: Goodbeye Notepad clones Welcome Geany!!! Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Sun Jun 29, 2008 2:23 pm
    ----
In fact it is an IDE lol, not a text editor with highlight functions. Its definitively an IDE.

But with geanyvc and spellcheck plugins installed its now even my main text editor.

#10: Re: Goodbeye Notepad clones Welcome Geany!!! Author: layingback PostPosted: Sun Mar 01, 2009 10:43 am
    ----
For those of you under Ubuntu, you'll have noticed that each version of Ubuntu's repositories are a version or 2 behind with respect to Geany. It's not hard to install the latest Geany from the home page, but it is work.

I just discovered this site with complete builds of later versions of popular apps, including Geany. Simply download select open with the default installer, and it's installed - as easy as using an official repository. (Some apps require upgrading of dependences first, but Geany doesn't - on my system anyway.)

Just ensure that you are selecting the correct one for your version of Ubuntu! Link is to 32bit Intrepid, but they have versions for 32 & 64bit of Intrepid & Hardy.

Geany 0.16 (vs 0.13 in Ubuntu repositories) adds vertical split screen, and auto completion of (, {, [, ', and ".

But note your toolbar settings before upgrading, as you will need to update it after, as 0.16 has a simpler default toolbar set.

Enjoy!

#11: Re: Goodbeye Notepad clones Welcome Geany!!! Author: EestlaneLocation: Estonia PostPosted: Sun Mar 01, 2009 11:41 am
    ----
Geany looks great. If it's IDE, does it also support Java and compiling it? (IntelliJ Idea is just a bit too slow for some quicktasks and too massive)

#12: Re: Goodbeye Notepad clones Welcome Geany!!! Author: DJ MazeLocation: http://tinyurl.com/5z8dmv PostPosted: Sun Mar 01, 2009 1:41 pm
    ----
Great layingback, i will check it out!

As for compiling Java? No idea if it works but you just point to a compiler and hit the button.

I do this all the time for PHP to check if my script is still valid.

#13: Re: Goodbeye Notepad clones Welcome Geany!!! Author: greenday2kLocation: CO PostPosted: Thu Sep 03, 2009 4:50 am
    ----
VERSION 2.0 - UPDATED 13/08/2010


I've builded the TAGS and snippets files for Dragonfly CMS.
Tested on Geany 0.16 on Ubunthu / Windows.

Linux: The files should be placed on the user's (home) directory:

~/.geany/snippets.conf
~/.geany/tags/dragonfly.php.tags (tags are activated on PHP files (*.php|*.inc))

on Windows 7:

C:\Users\YOURUSERNAME\AppData\Roaming\geany

The snippets.conf file includes "snippets" for other languages: php, java, python etcetera!. Please make sure you don't delete your custom snippets.

I've chosen the common php & HTML code snippets for DF, vars and functions FROM DF 9.2. In Some functions I've included the default values for a quick reference. The TAGS are written in the simplest way PIPE (not the complex way, but if we build a "complete" list of common functions|vars|html|php then then i possible to start making the TAGS & snippets on the format=tagmanager way)

More Info & Reference.
www.geany.org/manual/c...lobal-tags

Make sure you have auto completion enabled!


Suggestions ARE PRETTY WELCOMED, code snippets, common $vars, functions and so on.




TAGGED functions (auto completion):

Code::
adminlink()
bbcode_table($field, 'form', 0);
blocks_list($module=null)
can_admin($module)
check_words($message)
close_form()
CloseTable()
CloseTable2()
cpg_delete_msg($link, $msg, $hidden);
cpg_error($message, $title, $redirect);
$db->sql_freeresult($result);
decode_bb_all($text, $allowed=0, $allow_html=false, $url='');
decode_bbcode($text, $allowed=0, $allow_html=false);
decode_ip($ip)
define_nobody($file)
define('XMLFEED', true);
encode_bbcode($text);
encode_ip($ip)
filesize_to_human($size, $precision=2)
file_write($filename, &$content, $mode='wb')
Fix_Quotes($string, false, false);
formatDateTime($time, $format)
generate_secimg($chars)
get_lang()
getlink()
get_microtime()
get_theme()
getusrdata($user, $data='*')
gmtime()
GraphicAdmin('_AMENU');
group_selectbox($fieldname, $current, $mvanon, $all)
html2bb($text)
htmlprepare($str, $nl2br=false, $spchar=ENT_QUOTES, $nohtml=false)
htmlunprepare($str, $nl2br=false)
in_group($id)
ip2long32($ip, $unsigned=false)
is_active($module)
is_admin()
is_email($email)
is_user() 
message_prepare($message, true, true);
open_form($link='', $form_name, $legend, $tborder)
OpenTable()
OpenTable2()
pagination($base_url, $num_items, $per_page, $start_item, true);
Prepare_INPUT(&$value, $key, $set=true)
removecrlf($str)
require_once('header.php');
require_once('includes/cmsinit.inc');
select_box($name, $default, $options)
select_option($name, $default, $options)
send_mail($mailer_message, $message, $html, $subject, $to, $to_name, $from, $from_name, false)
show_tooltip($tip)
smilies_table('window', $field, $form);
strip_javascript($text, $events=true)
trigger_error()
validate_secimg($chars)
viewbanner()
yesno_option($name, $value)

Also auto completion for the $userinfo array snippet(TAG & snippet):

if you start typing "usr_"

auto completation starts showing the options (the columns for on the _users table [default]) for example:

Code::
usr_active_cp| usr_active| usr_actkey| usr_aim| usr_allowavatar|

Choosing (For Example) usr_allow_viewonline and THEN PRESSING TAB will convert it to
Code::
$userinfo['user_allow_viewonline']

TAGGED & Snippet For $db-> Updated for version 2: type db_ and name of method:
On the old version tags were "complicated" to memorize/learn.

Code::
db_arguments = $db->sql_affectedrows($result); 
db_count = $db->sql_count(''.$prefix.'_'); 
db_fetch = $db->sql_fetchrow(''.$prefix.'_',SQL_ASSOC); 
db_free = $db->sql_freeresult($result); 
db_fetchrow = $db->sql_fetchrowset('SELECT  FROM '.$prefix.'_ WHERE  ORDER BY  LIMIT'); 
db_insert = $db->sql_insert(''.$prefix.'_', fields, false); 
db_numfields = $db->sql_numfields($result); 
db_nextid = $db->sql_nextid($idfield); 
db_numrows = $db->sql_numrows($result); 
db_query = $db->sql_query(''.$prefix.'_', FALSE,FALSE); 
db_rowseek = $db->sql_rowseek($rownum); 
db_update = $db->sql_update(''.$prefix.'_', fields, 'where', false); 
db_ufetchrow = $db->sql_ufetchrow('SELECT  FROM '.$prefix.'_ WHERE  ORDERBY  LIMIT'); 
## require_once


so if you type: db_fetchrow AND PRESS TAB you'll get:
Code::
 $db->sql_fetchrow(''.$prefix.'_',SQL_ASSOC);

*** : After the auto completion the cursor will placed there.

Common Vars TAGGED (autocompletion):

Code::
$adminindex
$banners
$bgcolor1
$bgcolor2
$bgcolor3
$bgcolor4
$Blocks
$copyright
$CPG_SESS
$cpgtpl
$db
$db,$Blocks
$foot1
$foot2
$foot3
$_GET
$gfxcolor
$MAIN_CFG
$mainindex
$METATAGS
$module
$module_name
$pagetitle
$_POST
$prefix
$result
$sec_code
$showblocks
$site_logo
$sitename
$slogan
$start_time
$textcolor1
$textcolor2
$ThemeSel
$userinfo
$user_prefix

Snippets
Snippets are small strings or code constructs which can be replaced or completed to a more complex string. For .php and .html Files.

Class/function: Prefix

Cache: cache_
Code::
cache_save = Cache::array_save($name, $module_name, $array);
cache_load =  Cache::array_load($name, $module_name, $global)
cache_del =  Cache::array_delete($name, $module_name);

so if you type cache_del AND PRESS TAB you'll get:
Code::
Cache::array_delete($name, $module_name);

And So on.

Security Class: sec_

Code::
sec_check = Security::check(); 
sec_post = Security::check_post(); 
sec_domain = Security::check_domain($domain)
sec_email = Security::check_email($email)
sec_ip = Security::get_ip()

require_once: req_
Code::
req_bb = require_once(CORE_PATH.'nbbcode.php'); 
req_hd = require_once('header.php'); 

template tpl_
Code::
tpl_set = $cpgtpl->set_filenames(array('body' => '.html')); 
tpl_vars = $cpgtpl->assign_vars(array(   'U_' => $var1,   'L_' => LANGCONSTANT,   )); 
tpl_block = $cpgtpl->assign_block_vars('block_vars', array(   'U_' => $var1,   'L_' => LANGCONSTANT,   )); 
tpl_display = $cpgtpl->display('body',true); 

comments class (made by Kendle) The will be updates to integrate the jquery class and the updated versions of the comment class.
Code::
class_comm = require_once(CORE_PATH.'classes/comment.php');  $var =& new comment($mod, $link, $page, $key1, $key2, $op); 

file class: file_
Code::
file_analyze = CPG_File::analyze_path(); 
file_move = CPG_File::move_upload($file, $newfile); 
file_write = CPG_File::write($filename, $content, $mode); 
file_copy = CPG_File::copy_special($oldfile, $newfile); 
file_secure = CPG_File::secure_download($error, $filename, $realname); 

rss : rss_
Code::
rss_read = CPG_RSS::read($url, $items_limit); 
rss_format = CPG_RSS::format($rss); 
rss_get = CPG_RSS::_get_tag($tagname, $string, $encoding); 

Open & Close tables

Code::
opentable= OpenTable(); 
closetable = CloseTable(); 
opentable2 = OpenTable2(); 
closetable2 = CloseTable2(); 

Modules: commo used lines of code.
Code::
mod_ini = if (!defined('CPG_NUKE')) { exit; } 
mod_global =  global $db, $user_prefix, $prefix, $cpgtpl, $userinfo, $MAIN_CFG, $CPG_SESS,$multilingual, $currentlang,$ThemeSel,$METATAGS,$pagetitle; 
admin_ini = if (!defined('ADMIN_PAGES')) { exit; } if (!can_admin('INSERT_MODULE_NAME')) { die('Access Denied'); } 
lang_def =define('_',''); 

mod_global, inserts a new line with "common" global Vars.
lang_def, creates the basic code to make language files.

$userinfo: usr_
Code::
usr_active_cp = $userinfo['user_active_cp']
usr_active = $userinfo['user_active']
usr_actkey = $userinfo['user_actkey']
usr_aim = $userinfo['user_aim']
usr_allowavatar = $userinfo['user_allowavatar']
usr_allowbbcode = $userinfo['user_allowbbcode']
usr_allowhtml = $userinfo['user_allowhtml']
usr_allow_pm = $userinfo['user_allow_pm']
usr_allowsmile = $userinfo['user_allowsmile']
usr_allow_viewonline = $userinfo['user_allow_viewonline']
usr_attachsig = $userinfo['user_attachsig']
usr_avatar_type = $userinfo['user_avatar_type']
usr_bio = $userinfo['bio']
usr_commentmax = $userinfo['commentmax']
usr_counter = $userinfo['counter']
usr_dateformat = $userinfo['user_dateformat']
usr_dateformat = $userinfo['user_dateformat]
usr_dst = $userinfo['user_dst']
usr_email = $userinfo['user_email']
usr_femail = $userinfo['femail']
usr_from = $userinfo['user_from']
usr_group_cp = $userinfo['user_group_cp']
usr_group_list_cp= $userinfo['user_group_list_cp']
usr_icq = $userinfo['user_icq']
usr_id = $userinfo['user_id']
usr_interests = $userinfo['user_interests']
usr_karma_time = $userinfo['karma_time']
usr_karma = $userinfo['karma']
usr_lang = $userinfo['user_lang']
usr_last_privmsg = $userinfo['user_last_privmsg']
usr_lastvisit = $userinfo['user_lastvisit']
usr_level = $userinfo['user_level']
usr_msn = $userinfo['user_msnm']
usr_name = $userinfo['name']
usr_newpasswd = $userinfo['user_newpasswd']
usr_new_privmsg = $userinfo['user_new_privmsg']
usr_newsletter = $userinfo['newsletter']
usr_noscore = $userinfo['noscore']
usr_notify_pm = $userinfo['user_notify_pm']
usr_notify = $userinfo['user_notify']
usr_password = $userinfo['user_password']
usr_posts = $userinfo['user_posts']
usr_rank = $userinfo['user_rank']
usr_regdate = $userinfo['user_regdate']
usr_report_optin = $userinfo['user_report_optin']
usr_session_time = $userinfo['user_session_time']
usr_show_avatars= $userinfo['user_show_avatars']
usr_show_signatures = $userinfo['user_show_signatures']
usr_sig_bbcode_uid = $userinfo['user_sig_bbcode_uid']
usr_sig = $userinfo['user_sig']
usr_skype = $userinfo['user_skype']
usr_storynum = $userinfo['storynum']
usr_style = $userinfo['user_style']
usr_susdel_reason = $userinfo['susdel_reason']
usr_theme = $userinfo['theme']
usr_thold = $userinfo['thold']
usr_timezone = $userinfo['user_timezone']
usr_ublockon = $userinfo['ublockon']
usr_ublock = $userinfo['ublock']
usr_umode = $userinfo['umode']
usr_unread_privmsg = $userinfo['user_unread_privmsg']
usr_uorder = $userinfo['uorder']
usr_user_avatar = $userinfo['user_avatar']
usr_username = $userinfo['username']
usr_user_occ = $userinfo['user_occ']
usr_user_popup_pm = $userinfo['user_popup_pm']
usr_viewmail = $userinfo['user_viewemail']
usr_website = $userinfo['user_website']
usr_xfire = $userinfo['user_xfire']
usr_yim = $userinfo['user_yim']

HTML templates (trigggered only on .html files):

Code::
begin = <!-- BEGIN -->  <!-- END -->
ifend = <!-- IF -->      <!-- ELSE -->  <!-- ENDIF -->
bvar = {block._VAR}
is_u = <!-- IF S_IS_USER -->      <!-- ELSE -->  <!-- ENDIF --> 


Last edited by greenday2k on Sat Aug 14, 2010 5:55 pm; edited 4 times in total

#14: Re: Goodbeye Notepad clones Welcome Geany!!! Author: EestlaneLocation: Estonia PostPosted: Thu Sep 03, 2009 8:38 am
    ----
Cool! I should try Geany out again (though also like Web IDE).

#15: Re: Goodbeye Notepad clones Welcome Geany!!! Author: greenday2kLocation: CO PostPosted: Fri Aug 13, 2010 7:49 pm
    ----
Updated the Tags files for geany.



-> Chit-Chat

All times are GMT

Go to page 1, 2  Next  :| |:
Page 1 of 2