Bracket.io - PHP Syntax highlighter - syntax-highlighting

I am running the latest version of Adobe Brackets.io (v1.14.1) and would like to be able to highlight PHP tags (eg. <?PHP and ?>) in a different color (eg. red).
Now, I can appreciate that Brackets is focused on design and CSS aspects of web-development, but having searched this question beforehand I found that this is a rather popular request, hence was wondering if there has been update on this matter?
I downloaded extension "PHP SmartHints" reading that it would allow for this feature, but sadly does not.
Appreciate any recommendations on how to set this up.
Thanks
EDIT: this questions was asked almost 5 years ago here but has no accepted answer.

Related

Where have SDL2 wiki examples gone?

In this video (https://www.youtube.com/watch?v=qPHKWsZK2Jc&list=PLvv0ScY6vfd-p1gSnbQhY7vMe2rng0IL0&index=10) from about a year ago, there is example code on the SDL_CreateWindow function documentation page. I have seen other posts talking about the SDL examples.
If you look at the documentation now it is the same minus the example code
https://wiki.libsdl.org/SDL2/SDL_CreateWindow
Am I blind or is there no longer any example code on the SDL2 wiki?
If not, does anybody know what the reasons for removing it are?
I expect that
There are some official examples somewhere
If they were removed from the official wiki they would at least be placed in a 'legacy' repo or something like that.
A Google (DuckDuckGo) search gives only third party examples and, aside from a few forum posts, no mention of there ever being any examples on the wiki.
In 2022, the Wiki migrated from MoinMoin to ghwikipp. With that came a host of breaks and bugs. Your issue specifically is covered under issue #233.
The images were also broken, but that issue shows a workaround for viewing the Wiki in working form: use archive.org on wiki.libsdl.org, not wiki.libsdl.org/SDL2 where it is currently hosted. This gives you your examples back.
e.g. like this
If you have some sort of MediaWiki viewer program, you can also just pull an old revision from the Repo and read it offline. Even Github's MarkDown viewer isn't terrible. Caveat that new changes won't be reflected.
They promise us that it will be fixed at some point, and they do seem to be working hard on it. The only hardfix is either to (a) wait, or (b) help them finish their migration.

Joomla article showing an unwanted 1 one every page

It's been over a month now of me trying to find help for my site, not a single person has been able to help me. I believe if someone were to simply go on the backend of my site, then perhaps it could be fixed quickly.
My issue is I have an article that's showing a 1 on every page. I believe that '1' was replaced by a former developer where perhaps the article title went. When I hover over it with Firebug, it's showing:
<div class="item-page">
1
<p></p>
</div>
I've personally spent about 9 hours now trying to find it. I've been suggested to look in the template area many times. The 1 still shows up in the articles when I switch templates. Not that it seems to matter, I'm using Rockettheme.
Please don't recommend I simply go to the article manager and fix it; that's the first place I looked. Remember, it's showing up for every Single Article.
I would deeply appreciate any help; I'm in a bit of a desperate situation here.
Thank you for your time!!
I'm not sure why my question was voted down?
That's a bug that existed many many years ago. You need to update to the current version of Joomla. (Not migrate--update to the current release of your version)
Try disabling all content plugins and see if it goes away. One of the content plugins may be adding content to the articles.

Code Highlighting for Joomla

I need syntax highlighting of source code from various languages (PHP, C#, VB, etc) within articles I have in Joomla. I have tried enabling the Geshi plugin, updating the language files and putting the code into my Joomla article - however I can't seem to get it to work.
I have also tried CodeCitation from JED but again, the problem seems to be the same - I don't know how to tell Joomla to process it as code. I placed {codecitation} and {/codecitation} around my code (as well as including the brush value) but it doesn't work. I am unsure if these tags should be placed on the source or the wysiwug
Could someone please assist with an alternative method or work out what I am doing wrong?
With CodeCitation: if you already wrote the article using the tags (i.e. {codecitation} code {/codecitation}), it should work. Did you check if you enable the mambot?
As of Joomla 3.4 Geshi has been removed - but you can still get Geshi+ (geshi repackaged with all the additional languages) - & see the tips here on how to configure geshi.
An example of Geshi+ working is here.
There are now Joomla plugins using highlightjs & google's prettify library to highlight syntax but I found geshi+ worked much better
I am not certain if you can use it in Joomla or not. I use the syntax highlighter by Alex Gorbatchev. I have used it in a couple of blogs (wordpress for instance) and in some stand alone web pages. Not hard to intergrate. It uses the 'pre' tags. You need to be sure the code is already escaped. It may be worth a look. Here is a link.
http://alexgorbatchev.com/SyntaxHighlighter/
Hope this helps.
Bob

NetBeans GUI editor skin/theme

I'm creating a Java Web Applet in NetBeans and I want my final application to have a design called "Metal". I can set it, it's OK. But when I'm editing the GUI using "NetBeans GUI editor", I must work with the typical Windows design. Is it possible to use the "Metal" skin in the editor too? Each design has different sizes of buttons, fonts etc. So I'd love to see the final layout during editing. Not only after compiling.
I know that I can right-click and select "Design preview / Metal" but I do not want this.
For ilustration I'm attaching an image:
I saw this question in a few forums, but nobody understood it well (and nobody answered), so I'm asking my own question.
Try configuring Netbeans to use the Metal look and feel by editing netbeans.conf.
netbeans_default_options="... --laf javax.swing.plaf.metal.MetalLookAndFeel"
Note: After a normal Netbeans installation there's already a netbeans_default_options setting in the configuration file. Be careful not delete them unless you know what you are doing. Just append the --laf option.
1) This question was once answered at Force look and feel on NetBeans 6.5 Please take a look there also.
2) Some years ago I have written a detailed tutorial for Look and Feel changes in NetBeans. Please also have a look at http://netbeanside61.blogspot.com/2008/05/netbeans-ide-look-and-feel.html
with regards
Tushar Joshi, Nagpur
Thanks, it worked. But <snip> caused an error message, so I added to
"netbeans_default_options" only this:
"--laf javax.swing.plaf.metal.MetalLookAndFeel"
Side effect was, that whole NetBeans now have Metal design. But I like it, so why not.

BlogEngine.Net Code Formatting Extension that works?

For months now I've been trying to find a code syntax formatting extension that works for BlogEngine.Net. I'm not fond of the behavior of the default formatting extension, and have tried a couple of others (manoli is among them), but they always seem to interact badly with the TinyMCE editor. Does anyone know of an extension that works, or a different approach that will allow me to make code samples pretty on my blog without hacking the crap out of the HTML myself?
Thanks.
I would try using Windows Live Writer along w/ the Paste From Visual Studio plugin. One you go WLW, you'll never go back to that damn TinyMCE interface.
WLW here:
http://get.live.com/writer/overview
Plugin here:
http://gallery.live.com/liveItemDetail.aspx?li=d8835a5e-28da-4242-82eb-e1a006b083b9&l=8
Thanks, Rafe. Thanks to this post that Hanselman put up the day after I asked the question, I downloaded WLW and am now using it. As far as getting prettily formatted code, I'm using cut-and-paste from a little tool developed and available on manoli.net.
Check out SyntaxHighlighter.. Works excellent. For easy integration into BlogEngine have a look at my blog post.

Resources