Is there an IDE which supports snippets with popup arguments?

Is there a text editor or plugin which supports selecting from default arguments?
Geany package has the Snippet plugin. From their manual page
Basic snippet.conf entry:
    [Default]
    myname=Enrico Tröger
And then there's the feature to add a wildcard:
    Template wildcards
    [Default]
    myname=My name is {developer}
This will replace myname with "My name is " and the value of the template preference developer.
What I'd like to find is something similar to the wildcard:
    myname=My name is ("Chris" | "Xtian" | "CSimon")
This way I can complete the phrase "My name is" with any of these three options, similar to the current auto-complete.  (only autocompelete matches only what's in the document, and you can't limit it just to preset values)
I want to make some bog simple flat file xml-templates. Define something like a database field with a list of predetermined values, so I don't get field value identity problems.
Any ideas for VIM or geany?
Last edited by xtian (2014-12-09 00:02:25)

As I noted in the post, I want to make some bog-simple flat file xml-templates.
The functionality is really important so they're easier to maintain. I'm using geany right now, since its a little more convenient when copying text from web pages. Right now I have Snippets working to insert the exact wrappers. However, some of the elements are repetitive, and I wish to keep them consistent. And autocomplete is catching some of these words correctly and some not correctly. I don't need autocomplete for the whole document, but I very much would like it for these structural bits which snippets are so good (and convenient) at putting into a text doc. As I was re-purposing the snippet.conf and adding all these elements to classify the content files I was making, I realized how much the process was like making a database table. Combine this feature with templates and what you have is a single file as a single record, with the fields inside the document. Now I can parse these files for content with a script. If I'm using VIM or Geany, then all the better.

Similar Messages

  • Is there a module which supports 20-30 Analog line

    Is there a module which supports 20-30 Analog line
    like:VIC-2FXO but with 20-30 or more Analog line options.
    something similar to MODEM 16AM
    Regards
    Meer

    No, closest thing is the 24 port FXS balde for the Cat6k, or the new IAD 2430 series routers, which have 24 fxs ports as well.

  • Event Handlers which trigger functions with multiple arguments

    I am playing two video clips back to back. I have a few
    things which I need to do in between clips, so what I am doing for
    each is adding a handler for VideoEvent.COMPLETE, at which time i
    want to call a function which takes multiple arguments, like this:
    video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    private function myFunction(var1:String, var2:String,
    var3:String):void
    video.removeEventListeners(VideoEvent.COMPLETE, myFunction);
    I've already figured out that getting rid of event handlers
    that trigger anonymous functions is impossible. Please don't tell
    me that it's impossible to remove them if functions require more
    than 0 arguments...

    "muskiemania" <[email protected]> wrote in
    message
    news:gc0pk0$jfb$[email protected]..
    >I am playing two video clips back to back. I have a few
    things which I need
    >to
    > do in between clips, so what I am doing for each is
    adding a handler for
    > VideoEvent.COMPLETE, at which time i want to call a
    function which takes
    > multiple arguments, like this:
    >
    > video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    >
    > private function myFunction(var1:String, var2:String,
    var3:String):void
    > {
    > video.removeEventListeners(VideoEvent.COMPLETE,
    myFunction);
    > }
    >
    > I've already figured out that getting rid of event
    handlers that trigger
    > anonymous functions is impossible. Please don't tell me
    that it's
    > impossible to
    > remove them if functions require more than 0
    arguments...
    Any function that you add via addEventListener should expect
    exactly ONE
    argument, the event. And 99.958% of the time, you can take
    that event
    object and figure out exactly what you need to know.
    HTH;
    Amy

  • Framework which support 2D figure and data modal

    Anyone knows is there any framework which support 2D figure and data modal?

    Troopers wrote:
    I have tried a sample project with this code
    class FactorySample
    static void Main()
    using (DataTable providers = DbProviderFactories.GetFactoryClasses())
    Console.WriteLine("Available Data Providers:");
    foreach (DataRow prov in providers.Rows)
    Console.WriteLine("Name:{0}", prov["Name"]);
    Console.WriteLine("Description:{0}", prov["Description"]);
    Console.WriteLine("Invariant Name:{0}", prov["InvariantName"]);
    DbProviderFactory factory =
    DbProviderFactories.GetFactory("Oracle.DataAccess.Client");
    The Oracle.DataAccess.Client was listed by the GetFactoryClasses method but the GetFactory method failed :"Failed to find or load the registered .Net Framework Data Provider."
    So I have changed the name of the DBProviderfactory in all the machine.config files
    a distinguish name in each file to know which is loaded.
    I had four machine.config files for framework x86 v2, framework x86 v4, framework x64 v2 and framework x64 v4
    I have saw that the loaded file was the file for framework x64 v4
    This file had the node below in DbProviderFactories :
    <add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    So, i have removed this node because the assembly is not a x64 version
    Then it was the file for the framework x86 v4, this file had the same node in DbProviderFactories
    With this the GetFactory method works normally
    But in the server explorer window, if i create a new connection the ODP.Net is not present.
    Why?The visual studio tools require the 32 bit version of ODAC be installed, including the Oracle Developer Tools for Visual Studio component. This is the component that will open a dialog box during the install asking you which version of Visual Studio you wish to integrate with.
    It is not enough to simply have ODP.NET on the machine.

  • Like sound flower, I have an application which supports only 2channels. Is it required to implement 16channel also? Will there be any loss with 2channel audio?

    like sound flower, I have an application which supports only 2channels. Is it required to implement 16channel also? Will there be any loss with 2channel audio?

    Hello @Jccr510,
    Yes that ASUS MIO-892 will indeed work on your computer and will give you the Realtek HD Audio Manager that you are looking for.
    Hope I have answered your question to your satisfaction. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Is there any way to contact verizon with a detailed cell phone technical support question?

    Is there any way to contact Verizon with a detailed cell phone technical support question?  I prefer e-mail so as to provide details (like I am trying to provide here).  I have tried in-store personnel (no help at all) and the web chat - they just want to see me more data instead of helping me with my basic problem!
    I CAN NOT GET ANYONE FROM VERIZON TO GIVE ME ANY HELP NOR CAN I FIND A WAY TO FILE A COMPLAINT.  AT THIS POINT I JUST WANT TO DROP MY VERIZON ACCOUNT BUT I'M SURE THAT IT WILL COST ME A SMALL FORTUNE TO GET OUT OF IT.
    Here is my issue:
    Chat transcript removed as required by the Verizon Wireless Terms of Service
    BELOW IS A SCREEN COPY FROM REDDIT ABOUT SOMEONE WITH THE SAME PROBLEM WITH A VERIZON CELL PHONE
    So last night my RAZR MAXX HD did something totally bewildering by spontaneously downloading 2.6 GB of data over the course of ~ 3 hours. Fortunately I was able to catch this problem before it ended up being really expensive, but I still exceeded my 2 GB data plan by 600MB.
    The Culprits:
    Reddit News Free: 160 MB foreground / 0.96 GB background
    Android OS: 0 MB foreground / 1.18 GB background
    Several unnamed applications: ~ 350 MB
    Screenshots:
    The massive data spike
    Android OS data usage
    Reddit News Free data usage
    Weird unnamed processes
    Detailed timeline:
    5:12 PM: Incident begins according to VZW data usage website (2.60410 GB used). This is around the last time that I used my phone at the laundromat before getting dinner and watching Game of Thrones.
    8:04 PM: 50% of data allowance used (txt msg)
    8:31 PM: 75% of data allowance used (txt msg)
    8:58 PM: 90% of data allowance used (txt msg)
    9:13 PM: 100% of data allowance used (txt msg)
    10:05 PM: Got the text messages and immediately put the phone into airplane mode
    10:30 PM: Took screenshots
    10:45 PM: Enabled wifi, installed Kaspersky premium. Scan returned no threats.
    11:00 PM: Left phone in airplane mode, went to sleep.
    The questions:
    What was the root cause of this issue? Did Reddit News freak out as a result of an esoteric bug or was my phone hacked?
    If this was a simple Reddit News bug, then why was the Android OS also trying to use such a massive amount of background data?
    What the hell are these unnamed numeric applications? I've inspected my process history and this is the first time they have ever attempted to use data.
    I'm pretty sure that I can explain this situation to Verizon and get out of having to pay additional data usage fees, but I would like to know more about the problem before I get in touch with them.
    all 13 comments
    best 
    [–]omgmrjmako/PA, deb/Carbon 3 points 1 year ago*
    All I can think is your phone may have background downloaded an OTA update, and you'd then be prompted with something like, "As update to your Android system has been downloaded, would you like to install it now?"
    I do find it very odd that the update would be 2.6GB. As a rough base, the CyanogenMod 10.1 firmware for your device is well under 200MB, so unless Verizon has a ****-ton of bloatware in the update, or it had to attempt to download multiple times for some reason, it may be a stretch.
    But doing a little homework, it looks like the Verizon Razr Maxx was updated to 4.1 in late March. Maybe they're still rolling it out in waves? Have you gotten the update yet?
    Edit: Aaaand I just noticed you appear to be running an AOSP-based ROM, which totally rules out a carrier update being sent out.
    Edit2: If you want to live dangerously, you could try running:
    #kill -9 12289
    That 12289 is the PID listed in your screenshot. But don't run that without fulling understanding the kill command.
    The ps command could also be of use, but probably not.
    permalink
    [–]lechnito[S] 2 points 1 year ago
    I can confirm that the phone is currently at 4.1.2 and that I wasn't prompted for an OTA update.The fact that both the Android OS and Reddit News processes were simultaneously using an extremely large amount of data is unlikely to be a coincidence... 
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 3 points 1 year ago
    That is very curious that the spikes happened at the same time.I'm curious. It may have put at least some of that 2.6GB somewhere. You could use a data visualizer tool to see if you can find it, which may lead to more clues. 
    permalink
    parent
    [–]lechnito[S] 2 points 1 year ago
    The largest directories are:
    DCIM: Normal looking photos (90,825 KB)
    Android: Primarily map cache data (64,846 KB)
    If it was downloading content then it did not significantly save content to storage. It's not like I have anything particularly sensitive on the phone, but the idea that it was uploading a snapshot of my data definitely makes me uncomfortable.
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 2 points 1 year ago
    Yup, Digital Camera IMages and videos.Somewhere in /sdcard/Android would be my guess as to where a mysterious file would be downloaded, but if it's only 64MB, and mostly map data, I'd safely rule it out.I'm sorry, but I'm stumped here.Edit: I should mention I don't think this is malware, because unless a malicious app gained superuser access, any data it used would show under it's own apk in the data usage list, not Android OS. 
    permalink
    parent
    [–]mistrbrownstone 0 points 1 year ago
    DCIM: Normal looking photos (90,825 KB)
    Was it trying to auto-upload pictures or video to G+?I ******* hate that.
    permalink
    parent
    [–]lechnito[S] 1 point 1 year ago
    Although I'm not really up to speed with the Android platform, I come from a UNIX background so I feel comfortable running commands. How do I pull up a bash terminal? Do I need to root the phone first? 
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 2 points 1 year ago
    There's a number of terminal emulators in the Play Store that work well. You don't need a rooted phone to get to the shell as your user, but any privileged command won't execute unless you can grant it permission from the Superuser app that is installed when you root the device. So you could probably do a ps -e, but not a kill -9. 
    permalink
    parent
    [–]lechnito[S] 1 point 1 year ago
    Got it. I downloaded a terminal emulator but unfortunately those processes no longer exist.Does Android keep a generic log of system level events like /var/log/syslog? 
    permalink
    parent
    [–]omgmrjmako/PA, deb/Carbon 2 points 1 year ago
    I don't think so, and I know you'd need superuser permission to read most of the files in /var/log anyway. I'm not super familiar with how Android does its logging, but I do know that the two files of interest are the logcat and dmesg. 
    permalink
    parent
    [–]sh0nuff 1 point 1 year ago
    Want to mention here that using your settings to set your data cap (set it on your billing day), then you won't go over again.Those text messages are really unhelpful, as they send out well after the data has been used. Chances are good you hit close to the 2GB mark before you received the bulk of the messages. 
    permalink
    [–]kindofabuzz -4 points 1 year ago
    Quit installing pirated apps. 
    permalink
    [–]lechnito[S] 1 point 1 year ago
    That's definitely not the case here; both my PC and and Android phone are free from pirated apps.

    You used the data.  Verizon can not see what it was sued for.  However your phone can see whats apps used the data.  go to settings-data usage- there will be a place that says data usage cycle.  line the dates up with your cycle.  then there will be a bar graph below that   extend bother white bars one all the way to the left and one all the way to the right.  after those are extended below that will be a list of apps,  there should be one that used over 2 gb and that will show you what app used that data in her purse

  • Is there a way to print a pdf, which is secured with password?

    I want to know a way to print pdf which is secured with password to print without throwing a error ?
    Instead it has to ask for a password and print..

    we need to have an associated application installed in the system for that particular fileYup.
    does javax.print api works for pdf files and word documents?Nope.
    There is something called (I think) iText which can handle PDF documents. No idea whether it includes a printing facility or not.
    db

  • Creating a template in Pages is straight-forward as answered here previously. Is there and equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template?

    Creating a template in Pages is straight-forward as answered here previously. Is there an equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template? This has proved unsatisfactory to me so far. Lines are left in etc.

    There are two basic menus for fonts - one from the main menu bar and one from the toolbar. You can also bring up the font manage dialog.
    I don't recommend trying to hard to force an otherwise foreign font, as it inevitably needs to be usable/supported on iOS as well, and that can get tricky w/3rd party fonts, as an example, even with the expanded font support in the latest iBA.
    If you need to discuss fonts more, I suggest starting a new thread....preferably with a slightly more brief title, thanks.

  • Is there any server from vmware which supports OSGI and works similar to all functionalities of vFabric tc server?

    Hi,
         We have currently  built web applications which are in complience with OSGI and runs on  FUSE ESB. Recently we have gone through vFabric tc server which is based  on open source Apache tomcat. Is there any other server from vmware which supports OSGI and works similar to all functionalities of vFabric tc server?
    I  am not sure whether this is the right place to post this question.   Please let me know if i have to post this question anywhere else?
    Thanks,
    Prathap

    Hi Prabhat Y,
    Per my understanding that you are doing the migration from SSRS 2005 to SSRS 2008 and now you are re-creating the 3500 subscriptions in the SSRS 2008, so you want to the new created subscription in SSRS 2008 will be pause and not execute at this time, right?
    Generally, we have several method to pause the subscription processing, please reference to details information below:
    When you created an subscription, an new Sql Server Agent job will be created too, so you can you can just uncheck the 'enabled' checkbox in the job properties as below to disable the execution of the job,you can also  stop the SQL Server Agent Services
    manually, all your subscriptions will stop running:
    More information, Please reference to: 
    How to temporarily stop SSRS subscriptions
    You can also disable a Shared Data Source, pause a Shared Schedule to pause the subscription processing.
    Pause Report and Subscription Processing
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • I have a PVR which supports DLNA connected to my home network.  I want to access files on my MacBook from the PVR.  I understand that my MacBook doesn't support DLNA. Is there any 3rd party  software that I can install on my MacBook to provide DLNA?

    Hi,
    Can anyone help me please.
    I have a Personal Video Recorder (Humax HDR-1010S), which supports DLNA, connected to my home network via Wi-Fi. 
    I want to play music from iTunes and view photos from iPhoto from my MacBook (which is also connected to the home network) via the PVR / TV / Home Cinema sound system.  I understand that my MacBook (running OS X Mavericks) doesn't support DLNA server.
    Is there any 3rd party  software that I can install on my MacBook to provide DLNA server?
    Thanks,

    My recollection is that the iPhoto library has some fairly robust protections to prevent inadvertent or even deliberate changes being made that might have unwanted consequences. I'll take alook at my setup and let you know if I can see anything that might help you. Even if you get Serviio to "see" the iPhoto library, it almost ceratinly won't show the album structure and names. What I did is to export each iPhoto album to a standard folder with the appropriate folder name. These I keep on an external backup disc and Serviio can see these without trouble.

  • Can we unlock an iphone which one locked with an email address and password.I have no idea about the email address and password for the icloud

    can we unlock an iphone which one locked with an icloud email address and password.I have no idea about the email address and password for the icloud.can any one help me about this.

    It sounds like you are talking about an iPhone that has been Activation Locked.  This article explains:
    http://support.apple.com/kb/PH13695
    If so, the iPhone can never be unlocked without the original Apple ID and password.  This is an anti-theft measure.

  • Interface LabView with IP camera which supports MPEG4

    Hi,I would like to know is there anyway in which LabView can interface with an IP camera that only supports MPEG4?
    I need a simple program where LabView is able to capture live video or image from camera and save them as a file which can be send through email.

    Hello
    Even i am unable to interface my android smartphone camera with labview even when i used IP Webcam and droidcam.
    Although it has been interfaced as it shows my cam in MAX but it doesnt show the camera in the program i made for video acquisition.
    the same program works well for my laptop camera.
    I am attaching the screenshots as well.
    Hope u help me out with.
    Also if possible can you guide me through a link of its tutorial if i am wrong.
    Attachments:
    Capture1.JPG ‏30 KB
    Capture2.JPG ‏43 KB
    MAX 1.JPG ‏119 KB

  • HT4997 why imovie doesnt have a format which is compatible with you tube when there is an option to ''upload to you tube"' After upload you tube pops a message that format is not compatible

    hy imovie doesnt have a format which is compatible with you tube when there is an option to ''upload to you tube"' After upload you tube pops a message that format is not compatible

    1) The people responding in this forum are just other Apple product users like you, not Apple itself.  Apple Support Communities is primarily an end-user to end-user (i.e., users like you helping other users) technical issue support feature. Feedback will truly get more attention if you send it using:
    http://www.apple.com/feedback/itunesapp.html
    2)  At some stage developers decide it isn't worth the expense of supporting older technology. If I had my way you could still connect iOS7 to OS9, but Apple has decided to make the limit OS 10.6.8  Nor do I like that I can't get spare parts for my 33 year old car...
    Suggestions...
    If you are not going to always be running the newest technology always read software requirements before doing any upgrades.  I run a 12 year old computer and yes, I see there are things I can't run (many), but I also then avoid buying any incompatible new technology.  The system requirements are printed on the side of the box (albeit in 9 point medium gray font on light gray box   )  Do not expect the Apple Store people to check with you about your computer first.  I bet half of them were still in grade school when my computer was produced and none of them could possibly imagine anybody would run anything older than 6 years (probably not even that, more like 4).
    Why not buy Snow Leopard?  Of course you do not say what model computer you are using, but if you can run Snow Leopard on your computer there's no advantage to staying with Leopard.  Snow Leopard costs $20 which is minimal compared to you now no longer being able to sync your phone.
    Snow Leopard disc source - http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    I'd swear I posted almost this identical post two hours ago...
    If you can't/don't want to upgrade your computer, you have 30 days to return the phone I believe.

  • Hi, I have an iPhone 5s, recently its been a lot hotter than usual, also the battery life is going down a lot faster than usual, and it takes absolutely ages to charge up. There must be a serious problem with the battery, any ideas? thanks

    Hi, I have an iPhone 5s, recently its been a lot hotter than usual, also the battery life is going down a lot faster than usual, and it takes absolutely ages to charge up. There must be a serious problem with the battery, any ideas? thanks

    Apple can replace the battery for $79 US.
    http://support.apple.com/kb/index?page=servicefaq&product=iphone

  • Can't I get Xcode for leopord for free? or is there any other compiler which supports many languages?

    can't I get Xcode for leopord for free? or is there any other compiler which supports many languages?

    XCode is Apple's official SDE (as in Software Development Environment). It is meant to be used to develop all kinds of full-fledged applications, which are organized as projects. To use it that way, you run the main XCode front end, called appropriately enough Xcode. In the older versions of the product, prior to Lion's v4.3.x, everything was found inside the /Developer folder located at the root of the boot volume. (If you ever move on to Lion, XCode 4 is now an app found in the Applications folder and there is no longer a /Developer folder.)
    An alternate way to access the compilers is via command-line mode in Terminal, on traditional Unix fashion. After installing XCode, it will have set up the PATH variable to point to the appropriate directories so that gcc and its ilk are directly accessible. For instance (note that silverflash is the name of my Mac and my userid is macjuan):
    silverflash:~ macjuan$ which gcc
    /usr/bin/gcc
    silverflash:~ macjuan$ gcc -v
    Using built-in specs.
    Target: i686-apple-darwin11
    Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
    Thread model: posix
    gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
    silverflash:~ macjuan$ gcc --version
    i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
    Copyright (C) 2007 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Maybe you are looking for

  • How to set up alias iCloud email for Face Time

    I have 3 Apple ID accounts, one is only for iTunes, one is for me icloud, and one for my wife icloud Under my icloud account I have [email protected] with an alias, the alias is what I use for all of my email, I do not use the [email protected] for a

  • How can I get a refund for my Acrobat subscription?

    I purchased an adobe acrobat reader that was not compatible with my computer via a one month subscription. I was under the impression that I should get a refund for that...however, I have not seen such action take place. What do I do in order to get

  • Master/detail/detail

    using jsf/adf bc. I've got a jspx which needs to display data from a master/detail/detail setup. In a 'create' mode, i'm programmatically handling the create/insert stuff for the new master and detail rows. I'll try to explain my problem using a Depa

  • Merge PDF Documents

    Hi, I have Adobe Acrobat XI I have a PDF Cover Letter, containing recipients, created from Word mail merge and using Excel as the datasource.  One recipient details per page. I have another PDF Legal letter, that cannot be edited, and cannot include

  • Iphone App not Opening, Please Help!

    I keep trying to open the game app "what's the phrase". It will start to launch and act like it's going to open, but then the screen goes black and it goes back to my home page. This seemed to start happening after I downloaded the update for that pa