converting prn to lbl format in zebra designer - zebra-printers

We have a bunch of .prn files. These files dont open in Zebra Designer.
Is there a way to convert .prn to .lbl file so that they open in the designer software?
I tried renaming .prn to .lbl but the designer complains
Thank you

I think it is impossible: only a software made by Zebra could do it, because LBL files are binary and PRN are plain text. Unless the source code is open, there is no conventional way to do it, except using reverse engineering.

Related

Xcode 5 Custom Assistant Editor

I am trying to figure out how to create a custom assistant editor plugin for Xcode.
My eventual goal is to be able to display Lua (well, a variant of Lua really) byte code line-by-line with the original source code.
Of course where the byte code has more lines to display I would like the main editor window to space out the source code while the assistant is open to keep the lines matched up (like how the diff viewer works).
I have found a bunch of plugins for Xcode 4, and some updated for 5, but none of them do anything with the assistant editors.
Does anyone know of any resources I could use towards the end of creating this type of plugin? Thanks!

Can I enable the "Comment out the selected lines" feature for working on text files in Visual Studio?

Can I enable the "Comment out the selected lines" feature for working on text files in Visual Studio 2008 or 2010? I'd like the ability to use that function on files other than normal code related files. When I open a TXT file the comment and un-comment buttons are disabled. Is there a way to change that?
Thanks
Clarification: I use this text file to hold instructions for another program. Each Line holds one instruction. Sometimes I need to comment out blocks of instructions at a time. We use the "//" characters to accomplish this.
Could you give your filename a C++ extension (e.g., .h, .cpp) to fool the editor into thinking it's a C++ source file?
It appears you could also give it any extension and map that extension to a particular editor in: Options --> Text Editor --> File Extension
Unfortunately you cannot. The "Comment Out Selected" lines feature is a language specific feature and the text language service does not implement it (it's actually hard to call it a language service in general).
Besides what would commenting out a line in a text file look like? You could use Replace all + a regular expression to achieve the same thing though.
I'm curious what you would expect a commented line in a text file to do, or what it would look like. A commented line in a programming language causes that line not to be executed, but since a text file is just data, it doesn't execute anything anyway.

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting?
PS: The assignment is solving a math problem, so the choice of language isn't important and the teacher doesn't need to compile and run the program. She just wants to see our approach and results.
There is an extension now :) Visual Studio 2010 Color Printing Extension
Works well! :)
The best way I've found to accomplish this is to copy from Visual Studio and paste into something like MS Word or OpenOffice Writer.
This gives you full source code, with syntax highlighting. You can then print from Word (including adding your intro documentation before the code, etc).
Just to let everyone know, unfortunately printing in color was cut from Visual Studio 2010 because of resource constraints. Since we've rewritten the editor from scratch in WPF, we didn't have time to reimplement everything so we had to sacrifice this feature. We will try to implement this in the next version of Visual Studio. For now, copy to clipboard and paste into other app such as Microsoft Word is the recommended solution for printing code with color.
If you go to Tools -> Options -> Environment -> Fonts and Colors you can change settings to print with syntax highlighting (change 'Show settings for' dropdown to 'Printer'). But you will need to change all the individual settings to match your IDE (I don't know of a way to make it automatic)
Edit: you can use that "Use..." button next to the dropdown to copy settings from the Text Editor
Simplest of all copy code to clipboard and paste into MS-Word is the way I do and it works...
Have a look at VS.NETcodePrint 2010 availabe from www.starprinttools.com. You will be able to print and export the color coded output to PDF.
Joginder Nahil
Due the fact MSVS does not support it anymore I think the best way is really to copy the code and paste it into WinWord.
The advantages are listed below. You can
set the font/size exactly how you want it.
set the format of line numbers.
have your own header/footer.
remove #region from printing.
add a watermark to the output.
For me - I print once in 2 months a source code - it is a very comfortable way which I never could achieve with any 3rd party extension.

Question About Icons and GUI For Notepad++ Lovers

In the notepad++ website there's a technique to change the icons with any other "ico" format image. Each icon has it special name in order to be detected by notepad++. For instance, the new file icon is: new_normal.ico. The open file icon is: fileopen_normal.ico and so on. But I can't find the special names for Synchronize Vertical Scrolling, Synchronize Horizontal Scrolling and Run a Macro Multiples Times (I can't even find them in the notepad++ homepage). Well basically I'm hoping that some notepad++ developer would see this question and tell me what are the name of those icons. Thanks in advance!
Why not email a notepad++ member? It's open source and on Sourceforge.
They have both a forum and mailing list.

Source encoding in Visual Web Developer 2008 Express

Where can I set it? I need files to be encoded in UTF-8 by default... there is nothing in Tools -> Options or any other menu as far as I know :(
P.S. I don't need to set default encoding for Project or so, I need it to be default for any files I create. Thanks for your help :)
Instead of clicking save click save as. Then click the little down arrow by save to save with encoding. Once this is done it will bring you to the advanced save options which appear in full VS studio. You can then pick UTF-8 as the encoding.
The encoding options are available from a drop down list attached to the Save button when you select Save as..
File -> Advanced save options
Choose Encoding and Line endings
Regards,
Haris
I believe you cannot set the source encoding as a project setting. Instead, it tries to determine the source encoding from the file, using a fairly limited algorithm. Part of that algorithm is
if it has an UTF-8 signature (BOM), it is UTF-8 encoded
otherwise, it is in the ANSI system code page (CP_ACP)
There might be some additional checks in-between (e.g. checking for UTF-16 with BOM also).
In my experience, the "save as" encoding is not very useful, unless saving as UTF-8-with-BOM. You can save it in a different encoding, but in reopening, it will still assume it's CP_ACP.
IIRC, source files in visual studio are already encoded as UTF-8.
However, if I'm wrong or if you just want to force any specific coding, you can do it by choosing the Save As... option for the file and checking the pull down options under the save button from there.
Thank you for your answers but that's not exactly what I need.
Ok I will try to be more specific. That's how it goes: I go to Open website, I open website directly via FTP. On the right hand side I can see file list. I right-click on it, choose new item, html file, I have new html file. I add some text into it, click save (CTRL+S), the file is saved. Now I open it via browser and I see it's not saved in UTF-8. So, can I fix this problem in any way? :)
are you saying that even though the source file is encoded in utf-8, your internet browser is displaying it as ansi? do you have a meta encoding tag defined?
http://tlt.its.psu.edu/suggestions/international/web/tips/declare.html
try this and your browser should say it is utf-8. just saving a file in utf-8 won't do it.

Resources