473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Text Segmentation on clicking button

14
There is a piece of source code.On selection of some part of source code and click on button say"Create Segment".Segment should be created. Structure for this is:
/*Start Segment1*/
{
------------------------
-----------------------
----------------------
}
/*End Segment1*/

On clicking the create segment button, for the selected text start and end segment should be created.Please help me to overcome this problem.
Dec 10 '07 #1
4 1506
amulyab
14
There is a piece of source code.On selection of some part of source code and click on button say"Create Segment".Segment should be created. Structure for this is:
/*Start Segment1*/
{
------------------------
-----------------------
----------------------
}
/*End Segment1*/

On clicking the create segment button, for the selected text start and end segment should be created.Please help me to overcome this problem.
Dec 12 '07 #2
gits
5,390 Expert Mod 4TB
hi ...

sorry but i simply don't get it. is this a ruby-specific question? what source-code? where should what be created? could you explain in more detail what you have and what you want to achieve?

kind regards
Dec 12 '07 #3
amulyab
14
hi ...

sorry but i simply don't get it. is this a ruby-specific question? what source-code? where should what be created? could you explain in more detail what you have and what you want to achieve?

kind regards
sorry.. source code is nothing but plain text. on selection of some text and click on button start,selected part should be marked with start and end segment.
Dec 12 '07 #4
gits
5,390 Expert Mod 4TB
ahh ... i see :) ... so there simply should be specific text inserted around the selected text ...
Dec 12 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Applebrown | last post by:
I've got a couple of errors on my site that I'm not sure how to fix. I'm using simple CSS for both text rollovers and my horizontal navbar, and here's what happens. First, the site: ...
9
by: lkrubner | last post by:
I've got a function, you can see it below, that is being called onmouseup in the textarea on my main form. The idea is to find a selection if possible and store that text in a global variable. I...
4
by: frogman042 | last post by:
My daughter is playing around trying to learn JavaScript and she wrote a small program that prints out a message in increasing and decreasing font size and color changes. She is using document...
0
by: Lauren Quantrell | last post by:
I use the following code to create text edit fields and command buttons in my toolbars: Function CreateToolbarObject(myObjectType as integer) Dim newObject Select Case myObjectType Case 1...
1
by: Joel Barsotti | last post by:
Is there anything builtin to ASP.net that allows you to tie a text box to a button so when you press enter in the text box it emulates clicking a near by button. I've coded up some client side...
1
by: Ian Davies | last post by:
I am trying to move some text by clicking a button. When clicked the button runs the java script and this will then take the value in the text field and add 10 to it to create a new value, this is...
5
by: visu | last post by:
Hi this is a question asked in this group two years back.. No answer for this question till date. now i am in the same situation of the questioner.. to find a solution for this problem. Can any...
5
by: Alex | last post by:
Hello, I hope I can explain this properly. I'm writing an application with a tabbed-based navigation, and a form which gets filled out by users will be split into 5 subtabs. What I need is...
2
by: zombek | last post by:
Hello. I wrote a simple GTK+ program. On clicking a button I use calculate_cb callback function, and send MainWindow structure (it contains widgets) as data. When inside the callback function I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.