I wondered if anyone could help me with a strange bug I am having with CodeLite, which I am using as C IDE.
Basically nothing displays in the right side window editor when I open source files. This also happens when trying to change the fonts etc (this is where i looked first), whereby no preview displays.
Of possible note, that this absence of displayed text also occurs for example texts such as the one during the set up, as well as the pop up "Colours and Fonts".
The rest seems to work correctly, I was able to compile and run a project in the workspace for which I knew no edits needed to be made.
I am running Windows 7 professional 64 bits and i have not observed any issue elsewhere, only with CodeLite. I used the 64 bits installer to install CodeLite 12.02.
Attempted so far: restart computer, uninstall / reinstall CodeLite. Obviously looked up google, stackoverflow and CodeLite forum, without success finding anything similar.
Any idea where I should look for ways to solve this issue ?
Screenshot of CodeLite with a an example main.c open in editor but not showing content:
Screenshot of actual content of example main.c (hello world):
Screenshot of CodeLite initial set up, also showing no example text:
Screenshot of CodeLite "Colours and Fonts" pop up, also showing no example text:
May be it's late, but it happened that I solved the issue. I experienced the same problem with the latest CodeLite v15.0.3 at the time of writing. I also have Windows 7 64 bits and nothing was shown for the text of any opened source file.
Solution:
Open Settings > Preferences > Misc
and simply uncheck this setting:
[ ] Windows Only: use Direct2D editor drawings
It helped me.
sorry for my bad english, and sorry if my question not following the rules because this is my first question in stackoverflow.
I'm rewriting my internal office application which developed using Delphi but I dont have previous source code. For application reporting, i'm using the same FastReport .fr3 file from previous developer. But when i tried to print it out, it print out with different font. The Fast Report Preview before printing already same, but different after printed. Am i missed some settings?
here's the preview of the printed report:
my application report:
https://dl.dropboxusercontent.com/u/42816630/stackoverflow/my%20app%20report%20result.jpg
previous application report:
https://dl.dropboxusercontent.com/u/42816630/stackoverflow/previous%20app%20report%20result.jpg
The report using DotMatrix layout. I have drop TfrxDotMatrixExport. And also have tried to change font and layout for the print but still cannot achieve the same result.
Thank you for your help.
I have found the solution, Mr. Ken White answer is right, i have to used Escape command to the printer.
My Printer is Epson LQ-2180, so i used Epson Escape Command to set the font to be appear larger.
Here's my solution:
ESC ! n --> where n = 8 (Emphasized)
In Decimal would be #26#33#8
Thank you for the help.
Ive been developing all my life in Linux and now I have to work in a Windows 7 system. I would like to know what editor could I use with SSH, so I could edit the files directly on the server.
I guess Im not going to find anything good looking like coda or textmate, but at least Id like the SSH feature and syntaxis highlighting.
Also I need it to be free, and preferably lightweight.
Suggestions, please.
I generally use Komodo Edit for editing remote files … and local files. It is a nice, cross-platform editor.
Try Notepad++, their NppFTP-Extension (should be included by default) supports remote file editing.
Or as mention in the link above: WinSCP and NP++ as default editor.
I have given an answer here. Bluefish can be the answer you're looking for as its primarily targeted towards web development.
The solution finally presented itself. Sublime Text 2 :)
I currently work in the position of Data Warehouse programmer and as such have to put numerous flat files through ETL process. Of course prior to loading the file I have to be aware of its content, the problem is that majority of the files are > 1 GB large and I can not open them using my dear old friend "notepad". Kidding. I usually use VIM or Notepad++ but it still takes a while to open the file. Could I perform a "partial" read of the file using VIM or some other editor?
P.S. I know that I could write a 10 liner script to "data sample" the file, but it would be simpler to convince team members to use a feature of an editor than a script that I wrote.
Thank you for any insight you might have.
If you want to stick with using vim, you could have a look at the LargeFile script.
Alternatively, I've always found that UltraEdit opens large files extremely quickly.
You said you had VIM, that makes me wonder if you have a unix environment as well?
If you like, you can pipe the input through unix utility top and display the raw imput on your screen. Like this:
EDIT: (thanks Honk)
terminal$> head -N 15 file.csv
(Where that 15 indicates you want to see 15 lines only).
Pretty sure there are loads of similar questions, but hey, Textpad is a good choice for this.
use the head command.
Use the 'less' on solaris ... use the same through cygwin on windows. On mainframes this problem doesn't appear, ISPF editor handles it pretty well.
UltraEdit claims to handle files over 4GB...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 months ago.
Improve this question
I have occasion to need to print code (Horrors!!! ;) ), and i was wondering what editor or tool would i use to print that code out with proper formatting and syntax highlighting? If it's important, it will be c# code but ideally the tool will work for as many languages as possible. Can Notepad++ or something handle this?
You can use Vim! It's probably installed already if you're on modern Linux/MacOS and an easy install if not.
:syntax will turn syntax highlighting on and :hardcopy will print it. There's syntax highlighting definitions for many languages out there. The default look is usually optimised for screen display, but you can fix that.
Simply open the file on command line with vim <filename>, type :syntax on<ENTER>, then :hardcopy<ENTER> to print it. Quit Vim with :q!<ENTER>.
There's also the :TOhtml command which will open the current selection as HTML in a new Vim window. Capture the entire document with :%y<ENTER> followed by :TOhtml<ENTER> to open it.
Yes, Notepad++ can certainly print code with syntax highlighting.
Colour printing would obviously be preferable, but on the occasions when I've printed in black and white, the subtle differences in colour [rendered as shades of grey, of course] can be difficult to distinguish.
However, I think a little customisation of the colour schemes should make this less of a problem.
New Answer:
Use TextMate. It prints colored code automatically. There's no setup. Just print. In case previous or newer versions can't do this I'm using TextMate version 2.0.23
Old Answer, and the answer for people who don't have Macs:
Use vim. Its the easiest method to do it in my experience by far, that is, once you know how.
Vim comes pre-installed on Macs, btw. And I know how you special people like colors, so I'm going to make this impatientbusinessman-proof for the benefit of all.
1.) open file
vim filename.m
2.) enable syntax coloration (mine did not have enabled by default)
:syntax on
3.) print
:hardcopy
Vim will choose your system's default printer without asking you so make sure you set that up first.
4.) exit the program (this is actually not a given)
:q
http://pygments.org/ is one option. It supports a ton of languages, and since it's written as a python library, you can script the conversion process however you want.
Visual Studio will, and allows you have a completely separate configuration for printing.
I recently compared the 2 solutions already mentioned : vim & pygments. They both give great results, but there is how you can practically use them quickly:
pygments does not provide direct export to PDF. Hence, the simplest solution I found was to export to HTML and then use wkhtmltopdf. You can combine both operations using the following bash script:
src2pdf () {
local noext="${1%.*}"
pygmentize -O full -o "$noext.html" "$1"
# enabling line wrapping in <pre> blocks
perl -i -wpe '/<style.*>$/&&($_.="pre{white-space:pre-wrap;}\n")' "$noext.html"
wkhtmltopdf "$noext.html" "$noext.pdf"
rm "$noext.html"
}
for vim, it's as simple as this: TERM=xterm-256color vim '+hardcopy >out.ps' +q code.src
I found out that the $TERM environment variable can affect the output colors, so I prefer to set it explicitly.
And finally, you may need to tweak your .vimrc a little:
set printfont=:h9
set printoptions=number:y,left:5pc
The tool called enscript is very much the tool for doing this. It is very powerful, is not tied to an editor nor a language and you can create PDF's with syntax highlighting.
The documentation pretty much says it all.
enscript man page
Under unix you might want to try a2ps. It is flexible and produces nice results.
I while ago I created a household python script that wraps pygments into a small console utility. It works with any language supported by pygments.
Also if you happen to use eclipse, you could simply copy the selected text in the editor and then paste it in a RTF-aware editor like MS Word - it will preserve all the colors, fonts and formatting.
If you have problems with Visual Studio 2012 concerning the highlighted printing an handeling the described problem:
Download and install this Power Tool which implements the color
printing, besides some other features and bug fixes. Works for me!
Solution For Bash Shell
Add this line to ~/.bashrc if you are using UBUNTU
or, to ~/.bash_profile if you are using MAC
If that file does not exists, create it.
alias lprc='vim -me -c ":syntax on" -c ":hardcopy" -c ":q"'
source ~/.bashrc or source ~/.bash_profile
To print colored hello.py just do this:
lprc hello.py instead of lpr hello.py
Use ConTEXT programming editor (which is free). I am using it for both generating .pdf-s with syntax highlighted source code and printing to paper.
There are many ConTEXT syntax highlihting definitions to download and you can make your own highligher file which will BTW be highlighted using the ConTEXT Highlighter Files highlighter definition.
I do it downloading js and css files from
https://prismjs.com/
There are so many 5-7 options to select the theme and language highlighter. Once you select a theme and download the tiny js/css files the next thing you need to do is rename the code file to html, and call the css/js files. Open the html in a browser and print it. Done!
You can also use this in case you've to print with bnw syntax highlighting https://github.com/SGI-CAPP-AT2/code-highlight-n-print