element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
Forum How to use parameters %C, %F and %L when designating an external text editor
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 173 subscribers
  • Views 562 views
  • Users 0 members are here
Related

How to use parameters %C, %F and %L when designating an external text editor

Michael
Michael over 14 years ago

Is there anybody knows how to use parameters %C, %F and %L when designating an external text editor in EAGLE's Option Menu? I just learned from Internet that %F means only if this parameter is added in the command line, like "C:\WINDOWS\system32\notepad.exe" "%F", the ULP or SCR file can be opened directly in notepad, otherwise a new empty notepad will pop up.

 

Is there any more suggestions for %F? and %C and %L? Could anybody here give me some examples for the usage of these parameters?

  • Sign in to reply
  • Cancel
  • Former Member
    Former Member over 14 years ago

    The usage of these parameters depends on the editor you wish to use, but I'm afraid that you can't use %C and %L with notepad. I am using MultiEdit and my command line looks as follows:

    Mew32.exe "%F" /NOSPLASH /RW /L%L /C%C

     

    Another exapmle is for notepad++:

    notepad++ -n%L -c%C "%F"

     

    But whatever editor you use, you need to look up it's documentation for the supported command line switches. You'll see then if the editor is able to take you to a particular line and column.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Michael
    Michael over 14 years ago in reply to Former Member

    Thanks, but it doesn't work because I am using notepad of Windows XP. The command line I tried is notepad -3%L -2%C "%F", do you know where the error is? or maybe notepad never supported %L and %C?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Richard_H
    Richard_H over 14 years ago in reply to Michael

    Hi,

     

    as far as i remember a posing in one of the CadSoft Newsgroups, notepad is not first choice here. It does not support all these options.......... The community likes notepad++  image

     

    Regards,

    Richard

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Michael
    Michael over 14 years ago in reply to Former Member

    I put "C:\Program Files\Notepad++\notepad++.exe" -2%L -2%C "%F" in the field of External text editor, but the cursor didn't appear at second line and second column in notepad++, instead it prompt me to create a new file named "-21"...

    image

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 14 years ago in reply to Michael

    When you write -2%L then %L gets replaced with the line number while the rest remains unchanged. If EAGLE wants you to go to the first line you'll get -21. I don't know where you took the switch -2 from, but according to the documentation this switch is called -n. Please read the documentation: http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Command_Line_Switches

     

    BTW: I already gave you a notepad++ example command line.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Michael
    Michael over 14 years ago in reply to Former Member

    Thank you all!Now I understand I the swith in notepad++ are -n and -c, whereas %L and %C are just the value for those switches. And Windows's notepad does not support the switches. Thanks again, you're really helpful!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube