Ubuntu :: GEDIT DEFAULT Snippet - Doesn't Automatically Activate The Document
Mar 12, 2010
I'm a ruby on rails programmer, and I installed a snippet that supports .rhtml or .html.erb code (the rails code) in GEDIT HOwever, everytime I make a new .html.erb file, the snippet doesnt automatically activate the document. I have to manuelly go up to View=> Highlight Mode => Scripts => RHTML How can I set it so that all the files that have an .html.erb or .rhtml extension automatically use that snippet?
View 1 Replies
ADVERTISEMENT
Nov 25, 2010
Any time I'm following a tutorial or guide on something that involves gedit, the files I'm attempting to edit are opened as blank and I can't save them even if they weren't blank because it strangely thinks they aren't there. (see attachments)
View 2 Replies
View Related
Dec 12, 2010
Back in Ubuntu 6.06 I edited the xhtml.tags.gz XML file to give me a common list of xhtml tags that I use in my everyday web page editing. It was at a time when an xhtml editor was not readily available off-the-shelf.
Gedit came packaged with xhtml.tags.gz and other language taglists, but its alphabetical listing by name of tags and attributes was not helpful to me, so I edited some new tag groups containing tags organized in a way more suitable to myself.
By breaking it down into tag groups that typically didn't require a lot of scrolling to find what I wanted, and by having head tags in one menu and body tags in another, it cut down on having to sort through the hundreds of tags to choose from.
I also created a menu for editing the taglist itself as well as one for when I was writing rich-text email that would be copied into a mailing list program form. It worked flawlessly until a recent update brought with it a new version of gedit. It either was when I upgraded from 8.08 to 9.09 or from 9.09 to 10.04, I don't remember which.
Example of how it works: An example: I click on "body" on the left pane and I would get at the current cursor position this insert:
[Code]....
View 2 Replies
View Related
May 8, 2011
running 10.04 netbook lucid lynx and I have couple of simple plain gedit text files. Wheenver I open them I am always prompted "this is an executable file, with the the choice to Run in Terminal Display Cancel Run how do i get these simple text files (which are not executables unless file type got messed up) just to automatically display in gedit (they're set to open wtih gedt app).
View 7 Replies
View Related
Jan 24, 2011
I recently upgraded to Ubuntu version 10.10 64-bit and since then closing GEdit won't stop the process automatically when the window is closed and I have to kill it manually. I didn't have this problem with version 10.04 (also 64-bit) and I didn't change any settings after the upgrade.
View 2 Replies
View Related
Apr 16, 2011
I have text files (.txt) to open with gedit but every time I try to open a text file it says:
Code:
Do you want to run "Installed programs", or display its contents?
And if I press Display it will open. How do I make it open automatically?
View 3 Replies
View Related
Feb 19, 2011
Is there any way to automatically activate the wifi at system startup without using the keyboard switch? I have tried this script in gedit, saved as .run and added to startup applications but it doesn't work:
dbus-send --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.DBus.Properties.Set stringrg.freedesktop.NetworkManager string:WirelessEnabled variant:boolean:true
View 9 Replies
View Related
May 8, 2011
I configured the shortcut Alt+G to fire up mini editor gedit, which is fine. But when I press Ctrl+O to open a file, it searches directory /, the very root. While I want it to open automatically in /home/urdata/java/, for instance. The man-page doesn't tell me and the Preferences... inside gedit do not cover it, it seems.
View 1 Replies
View Related
Mar 28, 2010
I've got my Lenovo T60 laptop wireless running without too much trouble, the only problem is when i close my laptop lid and open it again the wirelessconnection is down and i simply cant click on the network icon in the notification area to re-connect as wlan0 is inactive. If i go to System>admin>network i cant activate the interface either as the 'active' button is greyed out, the only way to get the thing to come alive again (other than a full reboot) is to toggle the wireless switch on my laptop off and then back on.Not sure this should be required, i've got the interface configured to start automatically but it doesnt seem to care.
View 4 Replies
View Related
Jan 9, 2010
The default contents for the file that opens when you run gksudo gedit /etc/grub.d/05_debian_theme in terminal.
View 3 Replies
View Related
May 26, 2010
I just started using FireFTP instead of FileZilla because I got fed up with FileZilla not opening remote files and not recognising the default editor Gedit.
I really want to use keyboard shortcuts with FireFTP, which is possible according to the help docs on-line, but there is no option to use shortcuts anywhere even having enabled FireFTP to open in a new window. I tried it in Shiretoko 3.59 and Firefox 3.18 with no luck.
I just tried removing FileZilla and it does not appear in my list of installed apps. It appears in the full list as uninstalled but when ticking the box to install gives this message. FileZilla FTP client cannot be installed on your computer type (i386). Either the application requires special hardware features or the vendor decided to not support your computer type. I already have FileZilla..so how is that?
View 1 Replies
View Related
Aug 19, 2010
I typed in a text file (Feb.txt) at work using the basic Microsoft Notepad text editor and emailed it home. When I tried to open it from the email using the default gedit I got an error message - Could not open the file /tmp/Feb.txt gedit has not been able to detect the character encoding. check that you are not trying to open a binary file. Select a character encoding from the menu and try again.The character encoding is set to 'automatically detected'.
How come it can't detect the encoding? I had to manually set the encoding to Western(ISO 8599-15) to load it. I can't remember this happening in the past, and it was OK loading one I sent earlier (Jan.txt) which presumably had the same encoding, as it was written in the same way.
View 3 Replies
View Related
Nov 4, 2010
how do I uninstall Java? Tried with Synaptic and apt-get remove, but uninstalling sun-java6 automatically adds default-jre (openjdk) and uninstalling openJdk automatically installs sun-java ... but I don't want ANY Java on my machine - am I missing something? Already thought I maybe have a package that requires SOME kind of Java, but how do I find out?
View 2 Replies
View Related
Jun 1, 2010
I am using the Gnome desktop in Lenny 5.03The default Gedit paper size is "US Letter", which is almost right for my HP Laserjet 4L, except that about .5 inch at the top and .25 inch at the left margin are cut off.I have defined a "Custom Size" under File -> Page Setup -> Manage Custom Sizes... with margin settings that solve the problem, but this "Custom Size" only remains the default Paper Size for printing until Gedit is closed.Using what appears to be the same gnome dialog from epiphany and evolution, the Papersize settings stick, but not from Gedit. I cannot locate any configuration file to edit, and nothing in the gconf editor seems to apply.
View 4 Replies
View Related
Apr 17, 2010
am using slackware 13 and want to make Open Officeriter default when I click on a document. Currently when I click on doc it opens kwrite. Similarly when I click on an audio file it opens Gxine. I prefer MPlayer.
View 2 Replies
View Related
Oct 13, 2010
I've set up a low cost box with Ubuntu Lucid Lynx at home behind a router, and managed to get remote access running. My goal is to be able to host a small website and work on it remotely, so I isntalled ftp (vsftpd). When I tried to edit the vsftpd.conf file in Vinagre from work, I could only open it read-only, no surprise. When I tried 'sudo gedit' or 'sudo gedit /etc/vsftpd.conf' from terminal in Vinagre, I received the prompt for the password to elevate privileges (again, expected); however, after I hit Enter, nothing happens. I've tried a bunch of different things, but I can't get it to work. I can stop & start my ftp service with 'sudo service vsftpd stop/start' and it seems to work fine.
View 2 Replies
View Related
Oct 8, 2010
What is it gedit uses additional that causes so many problems in root account? When run Code: # gedit /some/file it either doesn't open file at all or opens it with lots of errors...
View 3 Replies
View Related
May 24, 2010
using 32 & 64 bit, lucid's openoffice 3.2 autorecovery doesn't activate after crash. 1 upgrade was from hardy to lucid and the other from karmic, regardless neither works. in hardy, after a power out, machine freeze, etc., i would reboot and log in, then ALL OO files that were open would be recovered from the wizard. Now that's gone. Yes, the AutoRecovery save option is set, it just doesn't appear after a crash like it used to.
View 1 Replies
View Related
Jul 27, 2011
I have an odd issue that I am running into. My objective is to insert the following lines at the end of /etc/inputrc on an RHES box:
Code:
# alternate mappings for "page up" and "page down" to search the history
"e[5~": history-search-backward
"e[6~": history-search-forward
I would like this sed snippet to be portable and thus far it's worked. However, I ran into one box where after I ran the snippet, Subsequent sessions lost the ability to use the letter "e". The original version I was using looked like this:
Code:
mv /etc/inputrc /tmp/inputrc.orig
sed 's/'$endif'/
# alternate mappings for "page up" and "page down" to search the history
"e[5~": history-search-backward
"e[6~": history-search-forward
&/' /tmp/inputrc.orig > /etc/inputrc
Then instead of using s/ I thought perhaps i/ would be better so I re-did it as:
Code:
mv /etc/inputrc /tmp/inputrc.orig
sed '/'$endif'/ {
i
i
# alternate mappings for "page up" and "page down" to search the history
i
"e[5~": history-search-backward
i
"e[6~": history-search-forward
}' /tmp/inputrc.orig > /etc/inputrc
Both of these produce the expected result BUT they both resulted in the loss of the letter "e". As I mentioned earlier in the post, this was working on 'newer' RHES 5 and up but I have the misfortune of having to support some older RHES 4 boxes in a closed lab. This particular box is an RHES 4u6.
View 4 Replies
View Related
Nov 7, 2010
I am trying to edit a postinfo.xsl in my root file dir, and with the command:
frank@linux-avnb:~> sudo gedit
(gedit:14150): Gtk-WARNING **: cannot open display: frank@linux-avnb:~>
I get the following. what am i doing wrong?
View 3 Replies
View Related
Nov 23, 2010
I followed the instructions here:
[URL]
But the checkbox to enable it in gedit becomes grayed out once I click it and it doesn't enable. (note that I used "pip install ElasticTabstops" instead of "easy_install ElasticTabstops", because that's what Arch uses)
View 2 Replies
View Related
Dec 20, 2010
I am trying to fill out this PDF form:
http://www.math.washington.edu/Grads...mentalform.pdf
In Document Viewer, I can click on the fields and type in them, but after spending about 2 hours writing descriptions of courses, I saved it and... it closed the document I was working on, and loading the document I saved resulted in empty fields that could no longer be edited at all - clicking on them did nothing - it looked like a blank form, except it was also broken.
Is there any way I can actually fill in this form...
View 4 Replies
View Related
Mar 20, 2011
I have both pigeon and empathy working on my laptop, and can chat in both, but i have been wanting to activate my video for both, but apparently it doesn't recognize my webcam. It seems strange as i have skype working perfectly on my system, and can use the video option in it without any problem, so it cant be that my webcam isnt recognized. does anyone know how i can get my webcam working in either or both of these instant messengering services.
View 1 Replies
View Related
Aug 10, 2010
I'm a very -slightly- advanced Samba user. I believe I know the basics of editing the smb.conf and I know to use smbpasswd to update the Samba users database.I have a group of identical shares.They are readOnly for the group @movies-play and they are (supposed to be) writeable by specific users. The readOnly group works great, no prob there, but I cannot get write access for the specified users. They are in the Samba user database using smbpasswd -a mark and neelix.Here is the share section in my smb.conf...
Code:
[movies-usb3]
path = /media/usb3/movies
guest ok = no[code]....
I have the workgroup and netbios info set. I have security=user set. The folder 'movies' in the path above is owned by 'mark' so it seems I should be able to write in it but I can't.I'm connecting to the share (it's on a server running Lucid) from my laptop (running Lucid. I added this mount info to fstab...
Code:
//spock/movies-usb3 /media/spockmovies3 cifs credentials=/home/mark/.smbpasswd 0 0
Of course spock in the hosts file so it resolves. I can see the share fine, just can't write.
View 9 Replies
View Related
Jan 12, 2010
I am trying to make wine work for explorer. I followed some instructions on this link [URL] To follow this link, I am supposed to
cd ~/ies4linux/ie6
cp user.reg ~/user.reg.old
gedit user.reg
1st and 2nd line went well 3rd line when I try to execute the command gedit user.reg (gedit:2573): Gtk-WARNING ** cannot open display I then /ies4linux/ie6# ls dosdevices(in blue) drive_c(in blue) system.reg(in white) userdef.reg(in green) user.reg
View 3 Replies
View Related
Aug 10, 2010
The printer prints with ubuntu live cd. I deleted the printer from the list and I followed the instructions here. When I tried to print, sometimes it shows that the documents was printed (but my printer is standby) sometimes it shows the document failed.
View 1 Replies
View Related
Mar 13, 2010
how to get xsane to scan a document and have it display as a full 8.5x11 sized document instead of something half that size? I've been trying and trying and can't seem to figure it out.
View 3 Replies
View Related
Feb 8, 2010
I set-up my Sudo it works but when I use Gedit I get the following message
Jean-Luc@localhost:~> sudo gedit /etc/fstab
(gedit:7137): Gtk-WARNING **: cannot open display:
samething with /etc/sudoers
If I use vi it's ok, I can modify and save. In Fedora it run ok, but with opensuse?
View 9 Replies
View Related
Oct 29, 2010
When scrolling down in nano with keyboard (holding "down" key), nano scrolls several lines at once each time. Is there any possibility to configure it so it will scroll one line each time like gedit does when scrolling in gedit?
View 3 Replies
View Related
Jun 8, 2009
I have apache httpd server on my Fedora 10I got 2 problems:First : I copied the web page files to its Document Root <var/www/html> & Disabled the default web page. But when I visit http:/localhost ,it shows up the list of files in <var/www/html> as if a ftp server browsed in web page. So how can I set http://localhost load my default web page index.html ?Second :I want to set up a web server on Internet through my router . I applied for DDNS account & input it into router correctly . I set virtual host in server to redirect any access from port 80 to 192.168.1.2:80 in LAN . Just for in case , I also download and running the DDNS software & installed it on PC 192.168.1.2 in LAN . My DDNS provider is oray.cn . It's a Chinese server provider . I don't think there is anything wrong with oray.cn . But if you need its information just visit oray.cn (Google can translate it for you). So I want to know did I miss something to set up a web server in this kind of situation
View 2 Replies
View Related