I would like to have syntax highlighting in hgweb.
For example, makes
http://jstock.hg.sourceforge.net/hgweb/jstock/jstock/file/7289237e7b67/src/org/yccheok/jstock/gui/AboutJDialog.java
looks like
http://jstock.cvs.sourceforge.net/viewvc/jstock/jstock/src/org/yccheok/jstock/gui/AboutJDialog.java?revision=1.36&view=markup
May I know how I can do so? I saw
https://sourceforge.net/apps/trac/sourceforge/wiki/Mercurial%20Web%20repository%20browser mentions Viewing the contents of a checked-in file (including raw or syntax-highlighted outputs)..
May I know how?
you can enable the syntax-highlighting via mime-type setting. I have done this with svn via setting the svn property svn:mime-type for files:
xml to text/xml
java to text/x-java
Next check in the files and the syntax should be highlighted.
For other scm tools please check there manual, how to set the mime-type for check in.
I hope it is helpful to you.
Related
I'd like to use KDevelop as my editor. How do I tell KDevelop to treat the .ino files as C/C++ files so it does things like syntax highlights and "Jump to Declaration"?
Is there a place to associate file extensions?
I take it, you can edit Kate's syntax highlighting file for C++, and add .ino extension to extensions attribute of <language> entity. Let me know if that worked for you, so I'll upstream this.
And BTW, there is a work-in-progress KDevelop plugin for developing for embedded systems. You might find it interesting (if you aren't using it already).
Open SystemSettings, go to 'Applications -> File Associations', search for 'x-c++src', and add '*.ino' to the list of filename patterns.
Alternatively, edit /usr/share/mime/text/x-c++src.xml manually, which has the same effect.
at the moment I try to experiment a little bit with Atom for writing an API documentation with RAML. Everything works fine but one damn thing:
Everytime I type some file paths (e.g. !include schemas/file.schema Atom auto creates the file when I'm not quick enough with typing. So, in some cases I have a hole bunch of file-zombies in my schema folder. That's kind of annoying.
My setup is standard Atom on MacBook, with api-workbench plugin, which includes linter as well. I already had a look at all those settings concerning auto completion - nothing found there. Also, Google doesn't show any hints. Any Tips?
Best regards,
Chris
It looks like this is a defect in the api-workbench package:
Api workbench creates new schemas, while i type their paths. For example below, i can see two-three files created while i type full name:
E.g:
schemas:
- myschema: !include schemas/myschema.json
Will create following files:
schemas/my
schemas/mysche
schemas/myschema
schemas/myschemas.json - this file is existing, i've created it before. all other files are redudant and i have to delete them.
Bug is not reproduced with examples, which i can also include in my document. Having issues while edition RAML 0.8 files.
If you want to help the package maintainers fix the defect, can I suggest you put together a minimal but complete example that reproduces the issue, this will make it easier for them to identify and resolve the issue.
I have en EDI file in mscons format. I am trying to parse the file in R and save it as a csv file. However, I do not have any good explanation how to proceed. Anyone out there worked with these sort of files?
Example:
UNA:+.? '
UNB+UNOC:3+7080005046091:14:TIMER+102953452626:82:TIMER+140312:2152+XGATE019452198++++1'
UNH+1+MSCONS:D:96A:ZZ:E2NO6A'BGM+7+1488136+9+NA'
DTM+137:201403121751:203'DTM+163:201403030000:203'
DTM+164:201403092400:203'DTM+ZZZ:1:805'
NAD+FR+7080005046053::9+++++++NO'
NAD+DO+953452626:NO3:82+++++++NO'UNS+D'
NAD+XX'LOC+90+707057500071137750::9'
RFF+MG:97645'RFF+LI:22446237_17506927'
LIN+1++1491:::SM'MEA+AAZ++KWH'QTY+136:1'
DTM+324:201403030000201403030100:Z13'QTY+136:1'
DTM+324:201403030100201403030200:Z13'QTY+136:2'
DTM+324:201403030200201403030300:Z13'QTY+136:1'
DTM+324:201403030300201403030400:Z13'QTY+136:1'
DTM+324:201403030400201403030500:Z13'QTY+136:2'
DTM+324:201403030500201403030600:Z13'QTY+136:1'
DTM+324:201403030600201403030700:Z13'QTY+136:1'
DTM+324:201403092300201403092400:Z13'CNT+1:167181'
UNT+6832+1'UNZ+1+XGATE019452198'
Download this application to start: EDI Notepad
Open your EDIFACT file in this tool. This will help you with context. What each segment / element is. It should also help give you context related to qualifiers and envelopes in the documents. You should find the source of the document and get an implementation guide, which will also explain their specific usage.
Once you apply context and understand what the elements are, parsing becomes easy. You can write your own parser, use an open source product like BOTS (mentioned in the comments above, or purchase commercial translation software (hundreds available).
The elements within the MSCONS file are well documented. See here: http://www.edi-energy.de - the latest description (in German) is available here: http://www.edi-energy.de/files2/MSCONS_2_2b_Fehlerkorrektur_2014_02_27.pdf
Is it possible to use Doxygen on classic-asp-files (written in VBscript)?
I found something called vbfilter.py, but I don't know how to use it. Can somebody please help me?
Finally, i could get it running.
requirements:
python 2.x
https://code.google.com/p/doxy-filter/source/browse/trunk/vbfilter.py?spec=svn1&r=1
download the vbfilter.py from Basti Grembowietz
in vbfilter.py modify def filter. you have to add a line for "asp".
then save the file in the root directory of the project
in Doxygen-settings, in the expert/input-area you have to set input_filter to vbfilter.py and the file_patterns to *.asp
(if you have python 3.x, there is another version, but take care. it's optimized for japanese usage. somewhere in that vbfilter.py codepage is set to CP932 and you have to set it to IS-8859-15 or whatever you need )
Looks like you will have to ask the developer to add support for classic ASP. The "vbfilter.py" you found is Python, really not relevant as far as I can tell.
In the official page he says:
You can submit enhancement requests in the bug tracker.
Is there a way to configure the HTML filtering settings in Plone 4 through GenericSetup?
Otherwise is there some example code for modifying the HTML filtering settings through Python?
http://collective-docs.plone.org/misc/portal_transforms.html
The portal_transforms example you found is certainly the correct way to make changes to settings that can't be done directly through GenericSetup, but if you want to find out if there's a an xml configuration that will do the job, it's often convenient to use the ZMI to dump all the GS settings. Go to your site's /portal_setup/manage_exportSteps, select Export all steps and then examine the resulting xml files in the download, to find one that contains the settings you're looking for. Not pretty, but surprisingly functional!