line

Any problems with SVN merge on a multi column ( tab delimited ) text file?

I have a multi-column text file ( tab delimited ) that I use for localized text in my project. I picked this format since it can easily be edited by anyone in most text editors (and excel too). My makefile processes it into a bunch of defines and binary data for including directly into my app. Do you know if SVN merge only does lin...

Javascipt library for syntax highlighting for code, then diffs, in HTML, at the line level?

Anyone know of a JS library that will allow me to syntax highlight a code block, then highlight line-level diffs? For example, in a subversion diff, I'd like to highlight the characters on the line that have changed (as well as highlighting the fact that there are change(s) on the line). Edit: I'm after something that will let me synta...

The intersection point between a spline and a line

Hi, I'm trying to find a way to calculate the intersection between a b-spline and a straight line. So far Google hasn't been much help. ...

When writing code do you wrap text or not?

I know a lot of people have their ide wrap lines in the code editor but i've always been of the thought that one statement = one line. Thoughts? ...

.NET Library to draw routed lines avoiding obstacles

I've created a workflow/flowchart style designer for something. At the moment it is using relatively simple Bezier curve lines to connect up the various end points of the "blocks" on the workflow. However I would like something a bit more intuitive for the user. I want the lines to avoid obstacles like other blocks (rectangles) and poss...

I Need to write a program to draw a graph using HP PCL 5e/HP/GL2

I have read an example and tried to duplicate it's methods but with weird results. This is a 1 shot deal so I do not want to buy a package to do this. Also, it will be executed on a Multi-Valued database in a Basic that not many programmers write in anymore. If anyone can post a small example of this It would be most helpful. Specificall...

How do I get a JEditorPane to highlight the full width of a line (not just the text)?

I'm trying to get a JEditorPane to highlight the full width of a displayed line. All the examples I've tried only highlight the textual content. For example if I have content such as this: --------------------------------- |Here is some text | |some more text | --------------------------------- withi...

Find all the line points by VC++

if we know the start point and the end point for an line how can you find the all point that line pass it ?? ...

How to clear last line in DOS?

Hello I have maybe dumb question - is there a function, that clears last line in command prompt? I dont mean "cls" - it clears the whole sreen, I want to delete just the last line. e.g. I am searching for a file in a folder and its subfolders and I want to print to cmd current folder - but I want to rewrite it, when the folder changes,...

How to set Line or Box in front of the image

I've insert image in crystal report by following step, In the Section Expert for the section containing the image, check Underlay Following Sections. but, when some line or box created, the image still in front of them. i can't set Line or Box in front of the image ...

IE7 line break inside div messes up bottom margin

I noticed strange behavior in IE7 that does not occur in Firefox. If you notice in "testing 2" "div",when I add 2 line breaks at the bottom of this div, it does not respect margin set up for this div, and "test 3" div is right below it without margins. When I remove "br" then "test 2" and "test 3" divs have margins between them. Is this...

firefoxs renders thin grey lines at content box edges of a png at certain widths - why?

When firefox (3.0.6) renders a png image at certain widths (e.g., 50%), a thin grey line is shown along the left and top edges of the content box. The line disappears at other widths (e.g., 70%). Furthermore, the line doesn't seem to be present in the original image (using gimp to inspect the image). The phenomenon occurs in the absence...

Xcode duplicate/delete line

Coming from Eclipse and having been used to duplicate lines all the time, it's pretty strange finding out that Xcode has none such function. Or does it? I know it's possible to change the system wide keybindings but that's not what I'm after. TIA ...

c# Drawing a Line with a gradient colour?

Is it possible to draw a line using a graduated colour? I want to be able to draw a stright or a curved line (if possible) where one end of the line is Blue and the other Red. Further There might be a beed to have more than one gradient per-line e.g the colour going from blue -> green -> red. Im thinking that this might just consist ...

RichTextBox color selected lines

Hello, I am new to windows Forms. I am using VS 2008, C# to write a RichTextBox. I want to be able to color each line with a different color as I write to the RichTextBox. Can someone point me to samples. Thanks foreach (string file in myfiles) { // As I process my files // richTextBox1.Text += "My processing results"; if(file ==...

What unix command can we use to append some text to a specific line in a file?

Does anyone know of a series of unix commands that allows someone to append some text to the end of a specific line in a file? eg Line 1 Line 2 Line 3 Line 4 I wish to append the text ", extra information" to Line 3 so that the File will now look like this: Line 1 Line 2 Line 3, extra information Line 4 ...

MZ-Tools for VB6 - Line Numbering at build time

One of the cool things about VB6 is that if you add a line numbers to your code is that the ERL function will return it if an error occurs. I use MZ-Tools for VB6 to add line numbers to the entire project, which is really cool, however, it's a pain to work with code that is numbered. So I typically remove the lines while I work on it. ...

How do I render thick 2D lines as polygons?

I have a path made up of a list of 2D points. I want to turn these into a strip of triangles in order to render a textured line with a specified thickness (and other such things). So essentially the list of 2D points need to become a list of vertices specifying the outline of a polygon that if rendered would render the line. The problem ...

How can I scroll to a specified line in a WinForms TextBox using C#?

Hello!! How can I scroll to a specified line in a WinForms TextBox using C#? Thanks ...

count lines in a PHP project

Hi there I'm just curious. Do you know any tool which can count all the code lines from a PHP project? Many thx! ...