I am trying to edit the following xml in eXide editor
<root>
హరి ర్హరతి-హరిః+హరతి, పాపాని, దుష్టచిత్తై రపి-దుష్టచిత్తైః+అపి, స్మృతః,
అనిచ్ఛయాపి-అనిచ్ఛయా+అపి, సంస్పృష్టో- సంస్పృష్టః,దహత్యేవ-దహతి+ఏవ,హి,పావకః,
స-సః, గంగా, స-సః, గయా, సేతుః, స-సః, కాశీ, స-సః, చ, పుష్కరమ్,
జిహ్వాగ్రే, వర్తతే, యస్య, హరి రిత్యక్షర ద్వయమ్-హరిః+ఇతి+అక్షరద్వయమ్,
</root>
If I press del key the letter at the cursor is not deleting but some other character got deleted. Does the eXide support unicode characters and respective fonts of the content. Is there any workaround other than editing the xml files in another editor and uploading them to eXist every time a change is needed.
the short answer: no it is not possible right now (exist 3.1).
long answer: If you find a way to override eXides font selection which is handled by ACE, and use the browsers or OS native font-substitution mechanism, you should be able to edit the xml in eXide.
Related
I created a layout using ZebraDesigner, it has fields and barcodes. I can only export to a .PRN file that contains "ZPL" code, but when I open the file, the fields are missing, I can only find the barcode's fields.
This is an example of what I am getting
As you see, there is a lot of strange code.
This is what I expected to see
The printer still prints all the fields, but the problem is that i need to see those fields in clear into the PRN file because in my program i parse the file template and replace all the fields, for example #idArticolo# with their corrispondent information picked from a database.
The strange thing is that in the .PRN file i see in clear only the barcode fields.
But normal text is not included.
The problem was the font, that was not compatible with the zebra editor.
I used one of the default zebra fonts of ZebraDesginer.
I would like to include the contents of a UTF8 text file in a MS Word document as a link. This works for an ansi encoded file using the field:
{INCLUDETEXT "path\file.txt" \c ansitext \* MERGEFORMAT}
Is there a directive akin to \c ansitext for UTF8 files? \c utf8 and \c utf8text do not appear to work.
If I do not give any directive, Word recognizes that the file is UTF8, but a dialog pops up requiring me to confirm this each time the file needs updating, which I want to avoid.
There is a directive ( \c Unicode ) but unfortunately using it does not actually eliminate the character encoding pop-up, even when the Unicode text starts with a BOM (Byte Order Mark), which are in any case discouraged by Unicode.
So although that answers the question actually asked, it doesn't solve the problem. Nor, according to the discussion in comments to the Question, would any of the following solve the problem for the OP, but they might help others.
According to the ISO 29500 standard that describes .docx documents, INCLUDETEXT is supposed to have an \e switch that lets you specify an encoding. But, according to Microsoft's standard document [MS-OI29500].pdf, Word ignores any \e switch.
As far as I am aware the only way to avoid that pop-up when the included text is in Unicode format (UTF-8) is to set a value in the Windows Registry that tells Word the default encoding for text files.
The problem with that is that that setting will affect what happens to all the text files opened by Word, whether through the file open dialog or an INCLUDETEXT.
To create the setting, you need to navigate to the following Registry location, e.g. for Word 2016/2019 it would be
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options
and for Word 2010 it would be
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options
Then add a DWORD value called DefaultCPG and set its value to the code page you want to be the default. For UTF-8, that's decimal 65001.
If you have control over the format of the file to be included, you could consider using a format that wouldn't trigger the encoding pop-up. That leads to another set of problems, e.g. if you used HTML you would probably have to deal with HTML special characters such as & etc., whitespace, and RTL characters (which Word seems to reverse). But the following HTML "framework" is enough to insert a text chunk without additional paragraph marks and so on:
<html>
<meta charset="UTF-8">
<body>
<a name="x">your text</a>
</body>
</html>
In the INCLUDETEXT field, you then use the "x" to indicate the subset you want to include, e.g.
{INCLUDETEXT "path\file.htm" x \c HTML}
The HTML coding <a name="something"> is deprecated in HTML 5, but Word only understands the earlier HTML convention.
I'm loving Sublime text but there are a few things I'd like to configure on the auto-complete:
HTML: Auto-completion of attributes within tags
When adding a class attribute to a div I have to do control+space to get the auto-complete list, is there a way of bringing that up automatically when adding attributes to tags?
HTML: Adding equals and quotes
When auto-completing the class attribute I then have to type the equals and quotes, can they be added automatically?
CSS: Auto-completion of property values
When I autocomplete a property, e.g. position I then have to add a space and press control+space or start typing to get the values autocomplete list. Is there a way of showing this list straight after the property autocomplete?
I've tried searching for an existing solution but can't find one, so I'm hoping there are some config files that I can amend! Any help pointing me in the right direction would be greatly appreciated! Thanks!
Darren
Try control + shift + p -> set syntax HTML in order to get auto-completion on html tags
also install: http://wbond.net/sublime_packages/package_control (streamlines package installation process)
and emmet: https://github.com/sergeche/emmet-sublime (makes writing html/css x times faster)
for more information on configuring sublime text you could check:
http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/
and
http://net.tutsplus.com/articles/news/perfect-workflow-in-sublime-text-free-course/
Definitively for autocompletion install first Package Control and them Emmet from the Palette Command, just search "emmet" and Enter.
If you don't have Package Control installed, do that first. Next find the Tag package through Package Control via ST2 and install it. I believe that's the one you're looking for, otherwise Emmet (Zen Coding) could be the one I'm thinking of. Either way, make sure your document syntax is set to HTML.
I tend to use lines of hashes and dashes for formatting and breaking up code files (e.g., CSS files):
/* -------------------------------------------------------------------
* Layout Styles
* -----------------------------------------------------------------*/
In vim I would use the command 80a-<ESC> which would insert 80 - characters from the location after the cursor.
I've poked around in the Sublime documentation, but haven't come across a good way of replicating the above vim command in subl. Vintage mode does not include support for this command sequence.
Is there a corresponding command that does something similar in Sublime or would a static snippet be the simplest solution?
I don't think there is any repeat character possibility. To do this with any character I think would require a plugin, but the basic functionality of inserting a big comment block can easily be achieved with a snippet:
Go to New Snippet through the menus and add this code:
<snippet>
<content>
<![CDATA[
/* -------------------------------------------------------------------
* $0
* -----------------------------------------------------------------*/
]]>
</content>
<tabTrigger>comment</tabTrigger>
</snippet>
then save the snippet in your Packages\User folder, as something.sublime-snippet. Should work straight away, you just have to type comment (or whatever you change it to..) then hit tab, then actually write your comment title.
In gherkin syntax (used by Cucumber and SpecFlow, I can comment out a line by prefixing it with '#'
Is there any way to block-comment multiple lines?
It is not supported by Gherkin, so you have to prefix all lines with #.
If you use the SpecFlow Visual Studio extension (v1.9.2) you can simply select the lines and toggle them into comments and back. The default shortcuts are Ctrl+K,C to comment and Ctrl+K,U to uncomment.
You can also "workaround" this problem in Visual Studio using the multi-line editing feature. (See http://weblogs.asp.net/scottgu/archive/2010/04/26/box-selection-and-multi-line-editing-with-vs-2010.aspx). You just have to select the beginning of the lines with holding ALT and using the mouse. Using this feature you can type in all the selected lines at the same time. You can also remove all of them similarly, selecting all the # characters for deletion.
Yes, there is. It's called PyStrings type comments. See example at http://docs.behat.org/guides/1.gherkin.html#pystrings.
It will work if you use it just after Feature or Scenario and some other elements.
Feature: my feature
""" some block comment
still block comment
""" end of block comment
Scenario: my feature
""" some block comment
still block comment
""" end of block comment
One the other hand it will not work if you want to comment out some steps.
I think you can configure your IDE to comment out a line on standard key combination. For example IntelliJ recognizes *.feature files and allows to comment out line out of the box. The same possible to do with Notepad++ or even VS.
Single line comment : #
Mutli line comment :
Starts with """
Ends with """
In Eclipse, for commenting single/multiple lines of Gherkin feature file content, we can also do the following.
Add new file association
Windows > Preferences > General > Editors> File Associations > File types: > Add...
and add a new file type as *.feature
Associate an editor for new file type
Associated Editors > > Add...
add Properties File Editor (Default).
Now reopen the file if it's open and it will open in Properties File Editor instead of Text editor.
Doing this allows me select any number of lines and comment-out using the common commenting shortcut Ctrl+Shift+C
Use CTRL + /
It works great. Multiple line comment
For commenting :
Single Line --> #
Multiple Line --> """
Use Command key + '?' key to comment multiple lines for cucumber scripts in MAC.
There's no block commenting in Gherkin, however you can comment multiple lines at once by selecting that block and hitting ctrl + /
You could achieve it by selecting all the lines that you want to comment and then pressing "Ctrl + plus/equals key + /" keys in eclipse.
I don't think it's supported, actually. I have been doing Cucumber related work for about 2 years now and I never seen it.
You'll have to do lot of #-lines ;).
I would start reading the great wiki on github (https://github.com/cucumber/cucumber/wiki/Gherkin)
In Eclipse, for commenting single/multiple lines of Gherkin feature file content, we can also do the following.
Add new file association
Windows > Preferences > General > Editors> File Associations > File types: > Add...
and add a new file type as *.feature
Associate an editor for new file type
Associated Editors > > Add...
add Properties File Editor (Default).
Now reopen the file if it's open and it will open in Properties File Editor instead of Text editor.
Doing this allows me select any number of lines and comment-out using the common commenting shortcut Ctrl+Shift+C
Well, I have so far used # to comment the test steps. If you use this, you should individually comment out each and every line, scenarios and examples which ever applicable. Though this is not recommended, still, I dont see anything similar supported in gherkin yet.
Select all the lines you want to comment and press cmd+shift+c.
There's no block commenting in Gherkin, however you can comment multiple lines at once by selecting that block and hitting ctrl + /