Listing with line numbers

how do I get a listing with line numbers to check compile errors with?

how do I get a listing with line numbers to check compile errors with? What listing from where using what?
AFAIK javac and jikes compilers give you the line numbers. What compiler are you using?
Or do you mean how to display line numbers with this or that editor? If it isn't obvious I'd suggest getting a proper editor (as others have suggested)!
BTW: eEdit = jEdit?

Similar Messages

  • Convert named access list to line numbers

    I printed out a document months ago which has since then disappeared into my mountains of paperwork. Somewhere in that document listed a command that converted an extended, named access list to one with line numbers. I even recall that you could input the line interval into the conversion process (so lines would be 5,10,15 etc or 10,20,30 etc).
    I just upgraded a 6509, and I'm ready to put line numbers in my access list, and can't find the command - a new Cisco search is coming up empty. Can anyone recall what the command is?? Again, it's for converting an existing access-list with no line numbers to one with line numbers.
    Thank you!

    Hi Emily,
    I guess this is what you are looking for. I have not tried it my self but would like to test it out.
    1. enable
    2. configure terminal
    3. ip access-list resequence access-list-name starting-sequence-number increment
    4. ip access-list {standard | extended} access-list-name
    5. sequence-number permit source source-wildcard
    or
    sequence-number permit protocol source source-wildcard destination destination-wildcard [precedence precedence] [tos tos] [log] [time-range time-range-name] [fragments]
    6. sequence-number deny source source-wildcard
    or
    sequence-number deny protocol source source-wildcard destination destination-wildcard [precedence precedence] [tos tos] [log] [time-range time-range-name] [fragments]
    7. Repeat Step 5 and/or Step 6 as necessary, adding statements by sequence number where you planned. Use the no sequence-number command to delete an entry.
    8. end
    9. show ip access-lists access-list-name
    This link should help :
    http://www.cisco.com/en/US/products/sw/iosswrel/ps1838/products_feature_guide09186a0080134a60.html
    regards,
    -amit singh

  • Best Architecture for Fortran Code with Line Numbers

    Hi all,
    I have large fortran 90 file (10+ pages) which I need to convert to LabVIEW.
    It contains several branching statements with Line Numbers, e.g.:
    1000 IF (condition) goto 2000
    I would like to know what is the best architecture to deal with this branching of the program.
    Should I break the sections (based on line numbers) into user events or states?
    Has anyone done similar conversions? 
    Cheers,
    Battler.

    battler. wrote:
    Hi all,
    I have large fortran 90 file (10+ pages) which I need to convert to LabVIEW.
    It contains several branching statements with Line Numbers, e.g.:
    1000 IF (condition) goto 2000
    I would like to know what is the best architecture to deal with this branching of the program.
    Should I break the sections (based on line numbers) into user events or states?
    Has anyone done similar conversions? 
    Cheers,
    Battler.
    I would insert a preliminary step where I would assign a descriptive name to each line number that is the target of a branch. The names become the names of the states (like Christian was hinting at) then diagram the code into a state transition diagram. The rest gets passed to a developer to complete.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Ruler with line numbering and cury text underline

    Hi,
    I've just started programming in java and as an exercise i was trying to make an simple text editor. Uptil now i've been able to make a textarea and a menu with items and such, but i have 2 things that i'm very curious about.
    1. How can I make a vertical ruler with line numbers in it? (like in JBuilder/Eclipse editors) I'm planning on putting it next to the text so I can see at which line in the document i'm at.
    2. How can I underline (mark) text with those curly lines you often see in applications? (i.e. Marking grammar and spelling errors in MS Word or marking programming errors in editors like JBuilder/Eclipse)
    I hope that these things can be done in Java. If someone could help me out with this, i'd be very grateful.
    Kayhne

    Try this.
    regards,
    Stas
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.util.*;
    class Test {
        public Test() {
            JFrame fr = new JFrame("TEST");
            fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JEditorPane pane = new JEditorPane();
            pane.setEditorKit(new NewEditorKit());
            pane.setText("test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test ");
            StyledDocument doc = (StyledDocument) pane.getDocument();
            MutableAttributeSet attr = new SimpleAttributeSet();
            StyleConstants.setLineSpacing(attr, 5f);
            doc.setParagraphAttributes(0, doc.getLength(), attr, false);
            JScrollPane sp = new JScrollPane(pane);
            fr.getContentPane().add(sp);
            fr.setSize(300, 300);
            fr.show();
        public static void main(String[] args) {
            Test test = new Test();
    class NewEditorKit extends StyledEditorKit {
        public ViewFactory getViewFactory() {
            return new NewViewFactory();
    class NewViewFactory implements ViewFactory {
        public View create(Element elem) {
            String kind = elem.getName();
            if (kind != null) {
                if (kind.equals(AbstractDocument.ContentElementName)) {
                    return new JaggedLabelView(elem);
                else if (kind.equals(AbstractDocument.ParagraphElementName)) {
                    return new ParagraphView(elem);
                else if (kind.equals(AbstractDocument.SectionElementName)) {
                    return new BoxView(elem, View.Y_AXIS);
                else if (kind.equals(StyleConstants.ComponentElementName)) {
                    return new ComponentView(elem);
                else if (kind.equals(StyleConstants.IconElementName)) {
                    return new IconView(elem);
            // default to text display
            return new LabelView(elem);
    class JaggedLabelView extends LabelView {
        public JaggedLabelView(Element elem) {
            super(elem);
        public void paint(Graphics g, Shape allocation) {
            super.paint(g, allocation);
            paintJaggedLine(g, allocation);
        public void paintJaggedLine(Graphics g, Shape a) {
            int y = (int) (a.getBounds().getY() + a.getBounds().getHeight());
            int x1 = (int) a.getBounds().getX();
            int x2 = (int) (a.getBounds().getX() + a.getBounds().getWidth());
            Color old = g.getColor();
            g.setColor(Color.red);
            for (int i = x1; i <= x2; i += 6) {
                g.drawArc(i + 3, y - 3, 3, 3, 0, 180);
                g.drawArc(i + 6, y - 3, 3, 3, 180, 181);
            g.setColor(old);
    }

  • I want to be able to write lists with decimal numbers 1.0, 1.1, 1.2, 1.3, 2.0,etc

    Hi,
    I am trying to use Pages to write an important document with tiered numbers. I want to be able to structure it like this:
    1.0 SECTION ONE
    1.1 A
    1.2 B
    1.3 C
    1.4 D
    2.0 SECTION TWO
    2.1 E
    2.2 F
    And so on...
    I can't find how you do it? Is it possible and if so how?
    This is on Pages, on iWork 09
    Thanks very much in advance!

    Peter is right. Pages v5.2.2 isn't as smooth with numbered lists, and in particular to the included image, tiered numbers.
    Text Indent is only remembered in the same indent level by pressing return. Each new indent level requires manual adjustment of the Text Indent. Out-denting (Shift-tab) retains the Text Indent of the prior indent level, not the previous member at current indent level — so more manual intervention is needed with Text Indent. Basically, a time wasting PITA.

  • Problems with line numbers (building via ant).

    We use ant for our builds and are having a problem with getting line numbers into call stacks. When running on linux we do not get the lines for our projects (not all projects have debug option), just (Unknown Source), however we do see line numbers for the tib jars. Eclipse is fine, we can see all line numbers as appropriate.
    I have tried "lines", "lines,source" and "lines,var,source" - all build a different sized jar which suggest something is getting added. However as we see line nums for tib it suggests it's some strange java runtime option. We're using sunjdk 1.5.10 and also jrockit.
    Any ideas/answers most appreciated.
    Many thanks, Declan
    Ant task
    <target name="compile" depends="init">
         <javac target="1.5" destdir="${classes}" debug="on" debuglevel="lines,source">
              <src path="${src}"/>               
              <classpath refid="default.classpath"/>
         </javac>     
         <javac target="1.5" destdir="${classes-test}" debug="on" debuglevel="lines,source">
              <src path="${testsrc}"/>
              <classpath refid="default.classpath"/>
              <classpath location="${classes}"/>
         </javac>
    </target>
    Example output
    java.lang.IllegalArgumentException: Field data is null
    at com.tibco.tibrv.TibrvMsg._addImpl(TibrvMsg.java:1503)
    at com.tibco.tibrv.TibrvMsg.add(TibrvMsg.java:1020)
    at com.lehman.fid.jdt.channel.tibrv.TibrvMessage.putObject(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.publishDepth(Unknown Source)
    Cmd line
    VM_OPTS="-Dlogfile=../../log/CmdOrderBook.log"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.authenticate=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.password=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.ssl=false"
    PARAMS="-springcfg orderbook-context.xml -instancename CmdOrderBook"
    exec ${JAVA_HOME}/bin/java -DappInstance=CmdOrderBook -server -Xmx500M -Xms250M -Xincgc ${VM_OPTS} com.lehman.cmd.etrading.orderbook.CommoditiesOrderBook ${PARAMS} >> ../../log/Cm
    dOrderBook.out 2>&1

    We use ant for our builds and are having a problem with getting line numbers into call stacks. When running on linux we do not get the lines for our projects (not all projects have debug option), just (Unknown Source), however we do see line numbers for the tib jars. Eclipse is fine, we can see all line numbers as appropriate.
    I have tried "lines", "lines,source" and "lines,var,source" - all build a different sized jar which suggest something is getting added. However as we see line nums for tib it suggests it's some strange java runtime option. We're using sunjdk 1.5.10 and also jrockit.
    Any ideas/answers most appreciated.
    Many thanks, Declan
    Ant task
    <target name="compile" depends="init">
         <javac target="1.5" destdir="${classes}" debug="on" debuglevel="lines,source">
              <src path="${src}"/>               
              <classpath refid="default.classpath"/>
         </javac>     
         <javac target="1.5" destdir="${classes-test}" debug="on" debuglevel="lines,source">
              <src path="${testsrc}"/>
              <classpath refid="default.classpath"/>
              <classpath location="${classes}"/>
         </javac>
    </target>
    Example output
    java.lang.IllegalArgumentException: Field data is null
    at com.tibco.tibrv.TibrvMsg._addImpl(TibrvMsg.java:1503)
    at com.tibco.tibrv.TibrvMsg.add(TibrvMsg.java:1020)
    at com.lehman.fid.jdt.channel.tibrv.TibrvMessage.putObject(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.buildSubMessage(Unknown Source)
    at com.lehman.cmd.etrading.orderbook.dp.DefaultDepthPublisher.publishDepth(Unknown Source)
    Cmd line
    VM_OPTS="-Dlogfile=../../log/CmdOrderBook.log"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.authenticate=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.password=false"
    VM_OPTS="${VM_OPTS} -Dcom.sun.management.jmxremote.ssl=false"
    PARAMS="-springcfg orderbook-context.xml -instancename CmdOrderBook"
    exec ${JAVA_HOME}/bin/java -DappInstance=CmdOrderBook -server -Xmx500M -Xms250M -Xincgc ${VM_OPTS} com.lehman.cmd.etrading.orderbook.CommoditiesOrderBook ${PARAMS} >> ../../log/Cm
    dOrderBook.out 2>&1

  • Bug with Worksheet Line Numbers in 2.1?

    I'm seeing an "issue" with line numbers enabled in the worksheet. When i have a plsql block with nested procedure/functions, and I collapse/expand the nested code, the line numbers in the worksheet don't consistently update till I resize the window.
    Example)
    1 [-] declare
    2 [-]   function f1
    3       return number
    4       as
    5         return null;
    6       end f1;
    7     begin
    8       dbms_output.put_line(f1) ;
    9     end;
    10    /turns into this when I collapse:
    1 [-] declare
    2 [+]   function f1...
    3     begin
    4       dbms_output.put_line(f1) ;
    5     end;
    6     /but turns into this when I resize sel developer:
    1 [-] declare
    2 [+]   function f1...
    7     begin
    8       dbms_output.put_line(f1) ;
    9     end;
    10    /I'm using the 2.1 release with the included JDK on a WinXpSP2 box.

    Hi Dylan,
    Thanks for this feedback.
    I have log a bug for tracking.
    Bug 8982049 - FORUM:LINENUMBER IS GUTTER NOT REFRESHED AFTER FOLDING
    Regards,
    Dermot.
    SQL Developer Team

  • How to print line numbers in NWDS for Java?

    Hi everyone,
    does someone know how to print out program code with line numbers from the Netweaver Developer Studio for Java? This is inevitable for code reviews.
    In Eclipse 3.4 this issue is solved. Is there possibly such a patch for NWDS as well?
    Thanks,
    Maria

    Hi Pascal,
    thanks for the quick reply. The setting you mention displays line numbers on the screen alright, but printing out does not work.
    We use: SAP NetWeaver Developer Studio for SAP NetWeaver 7.1 SP06 PAT0000, Build id: 200807051938.
    I guess it just does not work, because it was fixed only for Eclipse 3.4, and the above NWDS version bases on Eclipse 3.3.
    What do you recommend for code inspections - copy/paste into PSPad or do you know a more comfortable practice?
    Greetings
    Maria

  • Printing from Xcode: Line Numbers ?

    How can I print source from Xcode with line numbers ?

    Also not a direct solution but opening your files in Text Wrangler (free version of BBEdit) will allow you to add line numbers that will print out. If you use TextMate I THINK it behaves the same as Xcode and gutter displays line numbers but doesn't print them. TextMate is so extensible there is probably a way to make it print them as well but I'm not that familiar.
    =Tod
    PS I am speaking of Xcode < v3 here. I've only dabbled in v3 so I can't say what may have been added.

  • How to create a list/array off numbers with boolean attributes

    Hi,
         Maybe the title doesn't explain this too well but what I'm trying to do I'd imagine should be straight forward, I just don't know how!
    I want an array of numbers to be entered by a user, and for each of these numbers I wish to have a boolean, (it will select later what action is performed on that number)
    The array size can vary
    e.g.
    element       Numeric Value              Boolean
    0                       5                             True
    1                       20                           True
    2                       -5                            False
    3                       10                           True
    n                       100                         False
    I don't see any list with numeric and boolean, maybe I just haven't spotted it or do I have to make it somehow?
    Any suggestions please?
    Thanks!
     p.s. if anyone else is using Opera Browser to post here, hitting enter work properly for ye when entering text? For me it causes the cursor to go up one line instead of down! Drives me nuts! It only happens with this NI forum
    Solved!
    Go to Solution.

    Hi thanks for the reply, 
                              It not really what I'm looking for though. 
    I require is a control that inputs both numeric and boolean,  as in the example I mentioned. I guess I'm looking for a cluster really but I thought there may be something more straight forward.
    From the example I gave  
    Element 0 of this array has been entered as a x, and the boolean True was entered (so I perform a "test" A on value x)
    Element 1 of this array has been entered as a y, and the boolean True was entered (so I perform a "test" A on value y)
    Element 2 of this array has been entered as a z, and the boolean False was entered (so I perform a "test" B on value z)
    I could also use a 2d array were I enter another numeric value (0/1 for False/True) but I'm not sure I can limit this column only to accept 0 or zero and the first row any number.
    I was hoping there would be some easier way to do this

  • Why does cutting and pasting ordered lists no longer preserve the line numbers

    I often cut and paste ordered lists from web sites (track listings) to put with my downloaded tracks. Until the last update (not sure which version I was using with ubuntu 8.04 but it would have been the latest for that distro.) the line numbers were copied along with the ordered list, but they are not any more, so I have to type them all back in manually, which is a pain.
    I have uninstalled firefox 9 to try to downgrade, but don't know which version would still work.

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • How do I save a style of paragraphs with a numbered list in Pages 05?

    I wish to save a style of paragraph with a numbered list. Is it possible to save them at the same time in Pages 5 as it was in Pages 09'?
    Where are the shortcuts?
    Thanks.

    Yes, I know but there is no real list preset. The format command, when opened, shows a menu and I think you are using the word Style differently. A Style in 09 allowed one to save present formatting for several text appearance options, which is no longer possible in 05 "styles." Styles in text edting for applications like Word, OpenOffice, iBooks, and Pages 09 referred to a way to save a set of formatting command together and apply them with one click. That's the rub here in 5.
    Yes, you can apply a bullet as a "style" to a paragraph, bui you cannot save that formatting as a preset in any way to do it in one click. The issue is consistency and one click capability for multiple formatting features for a paragraph of text.
    Separating bullets and lists from the ability to maintain them in the Paragraph style removed the one click paragraph formatting option which is helpful for anyone who uses it more than a few times in a document.
    The need is for people who want to use common formatting for paragraphs and maintain a one-click option to apply text, indent, spacing, and bullets in one click, not spread out in several menus and lists. 
    If you can explain how to do this in Pages 5 I will be very happy and you will have saved me many clicks. Otherwise I will continue to use the bullet "style" list drop down menu.

  • Matrix - Help with setting 1st column for line numbers

    Hi,
    I have created a matrix on a custom form and would like to add line numbers to the # column line that of the quotation screen.
    The matrix itself is populated correct from the Query and LoadFromDataSource, and all the fields and columns are filled in correctly, the only column I am having trouble with is the 1st one for line numbers. My code for adding the line numbers is
    SBO_Application.MessageBox("Matrix Count: " & tMatrix.RowCount)
    For i = 1 To tMatrix.RowCount
          oEditText = tColumns.Item("#").Cells.Item(i).Specific
          oEditText.Value = i
    Next
    For the example I am using I get the message box appear:
    Matrix Count: 26
    So I know I should have the line number go from 1 to 26, however I only get 1 to 9 displayed, all the remaining lines are blank.
    Any ideas on why it stops at 9 or what I should do to correctly set the line numbers in the Number column like that of the system Quotation/Sales orders forms.
    Your help is much appreciated
    Matthew

    Hi,
    I tried changing it to the following as you suggested:
    SBO_Application.MessageBox("Matrix Count: " & tMatrix.VisualRowCount)
    For i = 1 To tMatrix.VisualRowCount
        oEditText = tColumns.Item("#").Cells.Item(i).Specific
        oEditText.Value = i
    Next
    The message box still displays 26, however my lines still only go up to number 9.
    Thanks for the quick response.

  • Is it possible to combine a address list with a Pages document and a data base in Numbers, the equivalent of "Mail Merge" using Microsoft?

    Is it possible to combine an address list with a Pages 5.1 document and a data base in Numbers 3.1, the equivelent of Microsoft "Mail Merge"?

    It is possible in Pages 09 and Numbers 09 but not in the versions you name.

  • I am facing problem regarding graphical user interface. I am using text box for editing files. I want to show the line numbers and graphical breakpoint​s along with text box. Can anybody help me in this? Thanks.

    I am facing problem regarding graphical user interface. I am using text box for editing files. I want to show the line numbers and graphical breakpoints along with text box. Can anybody help me in this? Thanks.

    Thanks for you reply.
    But actually I don't want to show the \ (backslashes) to the user in my text box. 
    Ok let me elaborate this problem little more. 
    I want to show my text box as it is in normal editors e.g. In Matlab editor. There is a text box and on left side the gray bar shows the line numbers corresponding to the text. Further more i want that the user should be able to click on any line number to mark specific line as breakpoint (red circle or any graphical indication for mark). 
    Regards,
    Waqas Ahmad

Maybe you are looking for

  • Error message in system diagnostic reports every 10 seconds

    i use imac i7 and latest Lion i noticed this problem by chance. It is seen in console under SYSTEM DIAGNOSTICS REPORTS. I can sit and watch and one occurs every 10 seconds. i gave up and reinstalled lion via cmd-R and have systematically installed fr

  • Problem to use RF front-end for 13.56 MHz application

    Hi, I developed an ASK transceiver using 5640R. It worked well when I directly connected the AI and AO ports. Then I tried communications between two antennas. I cascaded the niTuner VI and RF Upconverter Only Mode VI to control the PXI-5600 and PXI-

  • MSCS cluster installation on win + sql server 2005

    Dear Guru, I want to  installing MSCS cluster installation on win 2003 ENT.with sql server 2005 . Choosing High availability (ABAP) Please Guide me prerequisit & partation on local & shared disk. Its Urgent. Personal mail ID is [email protected] Rega

  • Track file usage by recording PC name?

    Is there any way for a pdf form file to record the PC name everytime it is opened on a new pc?

  • Palm Desktop reinstall on new hard drive

    Configuration: Palm 515, Windows XP Pro, Palm Desktop 4.1.4, Hotsync 4.0.4  Installed new hard drive on PC, reinstalled Windows, installed Palm Desktop and copied existing files (address, etc) onto new drive. Problem - User 1's contacts did not appea