Hi everyone,
If you are one of those who edit the code of their scripts and webpages from within the CPanel file manager and basic text editor, you must be well annoyed by the small size of the box where the text of the file is shown; right?
So I'll show you a great way to make the box almost as wide as the computer screen.
YOU SHOULD BE USING THE OPERA BROWSER FOR THIS (v9+)
Here is a small view of the file manager you access from cpanel:
If you want to edit a file:
And here's what you get:
See that's annoying when it comes to editing some lines of CSS, php or HTML, or anything else. And the absence of syntax highlighting adds to the annoyance as well.
So, how about making that box bigger? Let's do it.
In the source code of any file editing page, you'll find:
That's what we'll use in our CSS small hack.
Create a file somewhere, call it whatever.css, open it with a text editor, and paste this into it:
Save, close, then head back to your Opera browser, where the file editor is still open in the active tab;
You can type anywhere in Opera the F12 button, and this menu will be shown:
(you can access that by the menu "Tools > Quick prefs".)
In "Edit site preferences" menu, if you have your site's domain in the "Site "field, go to the "Display" tab, and then in "My stylesheet", choose/specify the address of the newly created CSS file, then click OK.
What happens? the text input area of the file editing, become BIGGER
This is a simple css hack. Imagine the applications you can do with this technique on the sites you frequently go to... :naughty:
If you are one of those who edit the code of their scripts and webpages from within the CPanel file manager and basic text editor, you must be well annoyed by the small size of the box where the text of the file is shown; right?
So I'll show you a great way to make the box almost as wide as the computer screen.
YOU SHOULD BE USING THE OPERA BROWSER FOR THIS (v9+)
Here is a small view of the file manager you access from cpanel:
If you want to edit a file:
And here's what you get:
See that's annoying when it comes to editing some lines of CSS, php or HTML, or anything else. And the absence of syntax highlighting adds to the annoyance as well.
So, how about making that box bigger? Let's do it.
In the source code of any file editing page, you'll find:
HTML:
<form action="savefile.html" method="POST" name="sform">
<textarea wrap="virtual" name="page" cols="80" rows="40">
Create a file somewhere, call it whatever.css, open it with a text editor, and paste this into it:
Code:
form[name="sform"] > textarea[name="page"] {width:100%}
You can type anywhere in Opera the F12 button, and this menu will be shown:
(you can access that by the menu "Tools > Quick prefs".)
In "Edit site preferences" menu, if you have your site's domain in the "Site "field, go to the "Display" tab, and then in "My stylesheet", choose/specify the address of the newly created CSS file, then click OK.
What happens? the text input area of the file editing, become BIGGER
This is a simple css hack. Imagine the applications you can do with this technique on the sites you frequently go to... :naughty: