LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Notepad++ or similar php coding/text editing tool for linux (https://www.linuxquestions.org/questions/linux-software-2/notepad-or-similar-php-coding-text-editing-tool-for-linux-599925/)

milasch 11-15-2007 03:16 PM

Notepad++ or similar php coding/text editing tool for linux
 
Hello,

I find Notepad++ amazing as a plain text editor, but it only is available for Windows. I installed it with wine, and it's working fine even though there are some font issues with it.

I would feel much more comfortable if I were using something already built for linux, or something that had its code ported to linux.

I find vim for exemple very useful, but there is one particular thing that I find SO AMAZING, the macro feature that some open source text editors have. But I couldn't find it in any text editor for linux.

Well, I tried to compile the notepad++ source but it's very complicated.

What would you guys recommend? Something that is lightweight such as kate, but with some very neat features such as notepad++...

Ghost_runner 11-15-2007 03:58 PM

What features are you wanting? Gvim has macros, even some neat shortcuts. Scite or such. Are you wanting to edit web/python/php? If so, Bluefish has some great stuff in it. What functions does notepad++ have that you miss? There is likely a way to get those functions in Gvim or kate, just gotta know how to get to them.

chrism01 11-15-2007 05:44 PM

vim has macros: http://www.oreillynet.com/mac/blog/2..._macros_1.html

milasch 11-29-2007 11:04 PM

I understand a lot of people love vim, I really enjoy it, but it lacks some features that makes much more productive to work with other editors.

Notepad++'s features I look for is:

Column selection
easy keyboard macro recording/playing
nice find features


I used to use ConTEXT for windows, but notepad++ is better.

I've tried installing Scite, amaya, screem, but always some GLIB2 related problem makes me give up.

Like, when I'm trying scite because it uses scintilla library such as notepad++, i get:

make
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
g++ -DNDEBUG -Os -Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -Os -DGTK -DSCI_LEXER -I ../include -I ../src -c PlatGTK.cxx
PlatGTK.cxx:11:18: error: glib.h: No such file or directory
PlatGTK.cxx:12:21: error: gmodule.h: No such file or directory
PlatGTK.cxx:13:21: error: gdk/gdk.h: No such file or directory
PlatGTK.cxx:14:21: error: gtk/gtk.h: No such file or directory
PlatGTK.cxx:15:28: error: gdk/gdkkeysyms.h: No such file or directory
In file included from PlatGTK.cxx:20:
../include/ScintillaWidget.h:26: error: ‘GtkContainer’ does not name a type
../include/ScintillaWidget.h:31: error: ‘GtkContainerClass’ does not name a type
../include/ScintillaWidget.h:38: error: ‘GtkType’ does not name a type
../include/ScintillaWidget.h:42: error: expected constructor, destructor, or type conversion before ‘*’ token
PlatGTK.cxx:107: error: ISO C++ forbids declaration of ‘GdkFont’ with no type
PlatGTK.cxx:107: error: expected ‘;’ before ‘*’ token
PlatGTK.cxx:112: error: expected `)' before ‘*’ token
PlatGTK.cxx: In destructor ‘FontHandle::~FontHandle()’:
PlatGTK.cxx:133: error: ‘pfont’ was not declared in this scope
PlatGTK.cxx:134: error: ‘gdk_font_unref’ was not declared in this scope
PlatGTK.cxx:135: error: ‘pfont’ was not declared in this scope
PlatGTK.cxx: At global scope:
PlatGTK.cxx:176: error: expected initializer before ‘*’ token
PlatGTK.cxx:180: error: expected initializer before ‘*’ token
PlatGTK.cxx: In member function ‘void Palette::Release()’:
PlatGTK.cxx:207: error: expected type-specifier before ‘GdkColor’
PlatGTK.cxx:207: error: expected `>' before ‘GdkColor’
PlatGTK.cxx:207: error: expected `(' before ‘GdkColor’
PlatGTK.cxx:207: error: ‘GdkColor’ was not declared in this scope
PlatGTK.cxx:207: error: expected primary-expression before ‘>’ token
PlatGTK.cxx:207: error: expected `)' before ‘;’ token
PlatGTK.cxx: In member function ‘void Palette::Allocate(Window&)’:
PlatGTK.cxx:252: error: ‘PWidget’ was not declared in this scope
PlatGTK.cxx:252: error: ‘gtk_widget_get_colormap’ was not declared in this scope
PlatGTK.cxx:253: error: expected type-specifier before ‘GdkColor’
PlatGTK.cxx:253: error: expected `>' before ‘GdkColor’
PlatGTK.cxx:253: error: expected `(' before ‘GdkColor’
PlatGTK.cxx:253: error: ‘GdkColor’ was not declared in this scope
PlatGTK.cxx:253: error: expected primary-expression before ‘>’ token
PlatGTK.cxx:255: error: expected type-specifier before ‘GdkColor’
PlatGTK.cxx:255: error: expected `>' before ‘GdkColor’
PlatGTK.cxx:255: error: expected `(' before ‘GdkColor’
PlatGTK.cxx:255: error: expected primary-expression before ‘>’ token
PlatGTK.cxx:255: error: expected `)' before ‘;’ token
PlatGTK.cxx:259: error: ‘GdkColor’ was not declared in this scope
PlatGTK.cxx:259: error: ‘paletteNew’ was not declared in this scope
PlatGTK.cxx:259: error: expected type-specifier before ‘GdkColor’
PlatGTK.cxx:259: error: expected `;' before ‘GdkColor’
PlatGTK.cxx:261: error: ‘gboolean’ was not declared in this scope
PlatGTK.cxx:261: error: ‘successPalette’ was not declared in this scope
PlatGTK.cxx:261: error: expected type-specifier before ‘gboolean’
PlatGTK.cxx:261: error: expected `;' before ‘gboolean’
PlatGTK.cxx:271: error: ‘PWidget’ was not declared in this scope
PlatGTK.cxx:271: error: ‘gtk_widget_get_colormap’ was not declared in this scope
PlatGTK.cxx:272: error: ‘FALSE’ was not declared in this scope
PlatGTK.cxx:272: error: ‘TRUE’ was not declared in this scope
PlatGTK.cxx:273: error: ‘gdk_colormap_alloc_colors’ was not declared in this scope
PlatGTK.cxx:278: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
PlatGTK.cxx: At global scope:
PlatGTK.cxx:494: error: expected initializer before ‘*’ token
PlatGTK.cxx:68: warning: ‘void FontMutexAllocate()’ defined but not used
PlatGTK.cxx:77: warning: ‘void FontMutexFree()’ defined but not used
PlatGTK.cxx:330: warning: ‘bool IsDBCSCharacterSet(int)’ defined but not used
PlatGTK.cxx:345: warning: ‘void GenerateFontSpecStrings(const char*, int, char*, int, char*, int, char*, int)’ defined but not used
make: *** [PlatGTK.o] Error 1

but when I run:

rpm -q gtk2
gtk2-2.12.0-5.4

uname -r
2.6.22.12-0.1-default
uname -m
x86_64

openSuse 10.3

I'm betting on Scite. Can someone help me out with these errors?

leif81 01-03-2008 01:41 PM

Quote:

Originally Posted by milasch (Post 2975208)

Notepad++'s features I look for is:

Column selection
easy keyboard macro recording/playing
nice find features

It sounds like your mind is made up already. However all of those are available in VIM.

Column selection can be done by pressing ctrl-v and then use the arrow keys up/down/left/right to make your column selection.

I'd argue VIM likely has every feature Notepad++ has and then some. It's just a matter of figuring out how to do it :)


All times are GMT -5. The time now is 01:01 PM.